Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fengmk2 committed Dec 24, 2014
1 parent fa637af commit 46b7bd0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ describe('index.test.js', function () {
it('should show custom scene name using __name property', function (done) {
request(app.listen())
.get('/users/1') // mocks/users/1/*
.expect(/normal%20user%20\(default\.js\),fengmk2,%E9%A9%AC%20%F0%9F%90%B4%20yun%20yun%20\(jackma\.js\)/)
.expect(/window.__koa_mock_scenes=/)
.expect(/iframe/, done);
});

Expand Down Expand Up @@ -173,7 +173,7 @@ describe('index.test.js', function () {
request(app.listen())
.get('/domain?__scene=default')
.expect(/localhost/)
.expect(/&domain=localhost/)
.expect(/__koa_mock_scene_toolbox\?domain=localhost/)
.expect(200, done);
});

Expand Down

0 comments on commit 46b7bd0

Please sign in to comment.