Skip to content

Commit 981c333

Browse files
committed
[update] add travis env test
1 parent f98f3bb commit 981c333

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

karma.conf.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ module.exports = function(config) {
7373
require('rollup-plugin-commonjs')(),
7474
require('rollup-plugin-replace')({
7575
'process.env.VERSION': `'${version}'`,
76+
'process.env.TRAVIS': `${process.env.TRAVIS}`,
7677
}),
7778
],
7879
format: 'iife', // Helps prevent naming collisions.

tests/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ describe('chimee-kernel base requirement', () => {
1111
videoElement = null;
1212
});
1313
it('isSupport', () => {
14-
expect(ChimeeKernelHls.isSupport()).to.equal(true);
14+
expect(ChimeeKernelHls.isSupport()).to.equal(!process.env.TRAVIS);
1515
});
1616
it('base method', () => {
1717
const config = {

0 commit comments

Comments
 (0)