Skip to content

Commit e905bd7

Browse files
committed
test(toast): fix unit test
1 parent df32836 commit e905bd7

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

ionic/components/toast/test/basic/toast.spec.ts renamed to ionic/components/toast/test/toast.spec.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,8 @@ describe('Toast', () => {
1212
showCloseButton: true
1313
});
1414

15-
expect(toast.message).toEqual('Please Wait...');
16-
expect(toast.showCloseButton).toEqual(true);
17-
expect(toast.closeButtonText).toEqual('Close');
15+
expect(toast.data.message).toEqual('Please Wait...');
16+
expect(toast.data.showCloseButton).toEqual(true);
1817
});
1918

2019
});

scripts/karma/karma.conf.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ module.exports = function(config) {
1111

1212
files: [
1313
'node_modules/systemjs/node_modules/es6-module-loader/dist/es6-module-loader.js', //npm2
14-
'node_modules/es6-module-loader/dist/es6-module-loader.src.js', //npm3
14+
'node_modules/es6-module-loader/dist/es6-module-loader.js', //npm3
1515
'node_modules/systemjs/dist/system.js',
1616
'scripts/karma/system.config.js',
1717
'node_modules/angular2/bundles/angular2-polyfills.min.js',

0 commit comments

Comments
 (0)