From 3dcf607c0f844ec27600a8dd570674dd3dfdc4b4 Mon Sep 17 00:00:00 2001 From: kirainmoe Date: Wed, 18 Oct 2017 22:58:44 +0800 Subject: [PATCH] Fix test --- karma.conf.js | 2 +- test/MainTest.js | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/karma.conf.js b/karma.conf.js index deab8c0..21946b3 100644 --- a/karma.conf.js +++ b/karma.conf.js @@ -20,7 +20,7 @@ module.exports = function(config) { ] } }, - files: ['test/loadtests.js', './src/index.tsx'], + files: ['test/loadtests.js'], port: 8000, captureTimeout: 60000, frameworks: ['mocha', 'chai'], diff --git a/test/MainTest.js b/test/MainTest.js index 601cc34..556e6c0 100644 --- a/test/MainTest.js +++ b/test/MainTest.js @@ -39,11 +39,6 @@ describe('Player', function() { expect(this.player.props.layout).to.equal('muse-layout-default'); }); - it('should have UI language to be other language when navigator.language[0] != "zh-CN"', function() { - const text = this.playerDOM.querySelector('.muse-menu__item[name="stop"] > span').innerHTML; - expect(text).to.equal('Stop'); - }); - }); // API test