aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/unit/karma.conf.js21
-rw-r--r--test/unit/specs/services/entity_normalizer/entity_normalizer.spec.js3
2 files changed, 2 insertions, 22 deletions
diff --git a/test/unit/karma.conf.js b/test/unit/karma.conf.js
index f3d0849b..e773181c 100644
--- a/test/unit/karma.conf.js
+++ b/test/unit/karma.conf.js
@@ -17,11 +17,6 @@ const webpackConfig = merge(baseConfig, {
rules: utils.styleLoaders()
},
devtool: 'inline-source-map',
- // vue: {
- // loaders: {
- // js: 'isparta'
- // }
- // },
plugins: [
new webpack.DefinePlugin({
'process.env': require('../../config/test.env')
@@ -37,22 +32,6 @@ const webpackConfig = merge(baseConfig, {
// no need for app entry during tests
delete webpackConfig.entry
-// make sure isparta loader is applied before eslint
-// webpackConfig.module.preLoaders = webpackConfig.module.preLoaders || []
-// webpackConfig.module.preLoaders.unshift({
-// test: /\.js$/,
-// loader: 'isparta',
-// include: path.resolve(projectRoot, 'src')
-// })
-
-// // only apply babel for test files when using isparta
-// webpackConfig.module.loaders.some(function (loader, i) {
-// if (loader.loader === 'babel') {
-// loader.include = path.resolve(projectRoot, 'test/unit')
-// return true
-// }
-// })
-
module.exports = function (config) {
config.set({
// to run in additional browsers:
diff --git a/test/unit/specs/services/entity_normalizer/entity_normalizer.spec.js b/test/unit/specs/services/entity_normalizer/entity_normalizer.spec.js
index 98bb05a8..3923596b 100644
--- a/test/unit/specs/services/entity_normalizer/entity_normalizer.spec.js
+++ b/test/unit/specs/services/entity_normalizer/entity_normalizer.spec.js
@@ -269,7 +269,8 @@ describe('API Entities normalizer', () => {
it('converts IDN to unicode and marks it as internatonal', () => {
const user = makeMockUserMasto({ acct: 'lain@xn--lin-6cd.com' })
- expect(parseUser(user)).to.have.property('screen_name_ui').that.equal('lain@🌏lаin.com')
+ expect(parseUser(user)).to.have.property('screen_name_ui').that.equal('lain@lаin.com')
+ expect(parseUser(user)).to.have.property('screen_name_ui_contains_non_ascii').that.equal(true)
})
})