Skip to content

Commit

Permalink
fix: js-app-xml test case
Browse files Browse the repository at this point in the history
  • Loading branch information
Lellansin committed Mar 5, 2019
1 parent cbe208b commit 1298195
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Empty file.
3 changes: 2 additions & 1 deletion packages/midway-mock/test/mock_container.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ describe('test/mock_container.test.ts', () => {
afterEach(mm.restore);

it('should test js app load success', async () => {
const my: any = await container.getAsync('my');
// use camelcase class name as provider id in js version
const my: any = await container.getAsync('myController');
assert(my);
assert(my.$$mytest);
assert(my.$$mytest === 'this is my test');
Expand Down

0 comments on commit 1298195

Please sign in to comment.