mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
Fixed parent-app unit tests
no issue
- updated to reflect the changes in 717567995b
This commit is contained in:
parent
717567995b
commit
c411795741
1 changed files with 3 additions and 1 deletions
|
@ -55,7 +55,7 @@ describe('parent app', function () {
|
|||
|
||||
use.calledWith('/ghost/api').should.be.true();
|
||||
use.calledWith('/ghost').should.be.true();
|
||||
use.calledWith('/content/images').should.be.true();
|
||||
use.calledWith('/content/images').should.be.false();
|
||||
|
||||
apiSpy.called.should.be.true();
|
||||
adminSpy.called.should.be.true();
|
||||
|
@ -77,6 +77,8 @@ describe('parent app', function () {
|
|||
it('should mount and assign correct routes', function () {
|
||||
parentApp();
|
||||
|
||||
use.calledWith('/content/images').should.be.true();
|
||||
|
||||
vhostSpy.calledTwice.should.be.true();
|
||||
vhostSpy.firstCall.calledWith('admin.ghost.blog').should.be.true();
|
||||
vhostSpy.secondCall.calledWith(/^(?!admin\.ghost\.blog).*/).should.be.true();
|
||||
|
|
Loading…
Add table
Reference in a new issue