Skip to content

Commit

Permalink
[update] add travis env test
Browse files Browse the repository at this point in the history
  • Loading branch information
toxic-johann committed Dec 25, 2017
1 parent f98f3bb commit 981c333
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ module.exports = function(config) {
require('rollup-plugin-commonjs')(),
require('rollup-plugin-replace')({
'process.env.VERSION': `'${version}'`,
'process.env.TRAVIS': `${process.env.TRAVIS}`,
}),
],
format: 'iife', // Helps prevent naming collisions.
Expand Down
2 changes: 1 addition & 1 deletion tests/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ describe('chimee-kernel base requirement', () => {
videoElement = null;
});
it('isSupport', () => {
expect(ChimeeKernelHls.isSupport()).to.equal(true);
expect(ChimeeKernelHls.isSupport()).to.equal(!process.env.TRAVIS);
});
it('base method', () => {
const config = {
Expand Down

0 comments on commit 981c333

Please sign in to comment.