0
Fork 0
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:
Kevin Ansfield 2019-09-11 14:27:09 +01:00
parent 717567995b
commit c411795741

View file

@ -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();