From fd5896a1cd83c8757489f5195d963224a95be26e Mon Sep 17 00:00:00 2001 From: Boris Serebrov Date: Sun, 13 Nov 2022 11:40:13 -0500 Subject: [PATCH 1/3] Remove duplicate keys. --- spec/emoji-index-facebook-spec.js | 3 +-- spec/emoji-index-spec.js | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/spec/emoji-index-facebook-spec.js b/spec/emoji-index-facebook-spec.js index 3129f57..566a29d 100644 --- a/spec/emoji-index-facebook-spec.js +++ b/spec/emoji-index-facebook-spec.js @@ -11,7 +11,7 @@ describe('#EmojiIndex', () => { new EmojiData({ short_names: ['pineapple'], name: 'Pineapple', - unified: '1f34d', + unified: '1F34D', added_in: '6.0', emoticons: undefined, // The has_img_xxx are deleted from specific files @@ -28,7 +28,6 @@ describe('#EmojiIndex', () => { sheet_x: 6, sheet_y: 13, text: '', - unified: '1F34D', subcategory: 'food-fruit', }), ]) diff --git a/spec/emoji-index-spec.js b/spec/emoji-index-spec.js index 8e7de04..cbca099 100644 --- a/spec/emoji-index-spec.js +++ b/spec/emoji-index-spec.js @@ -11,7 +11,7 @@ describe('#EmojiIndex', () => { new EmojiData({ short_names: ['pineapple'], name: 'Pineapple', - unified: '1f34d', + unified: '1F34D', added_in: '6.0', emoticons: undefined, has_img_apple: true, @@ -24,7 +24,6 @@ describe('#EmojiIndex', () => { sheet_x: 6, sheet_y: 13, text: '', - unified: '1F34D', subcategory: 'food-fruit', }), ]) From 0d80bc4fd7df687c280b8b254c8a609647ccf701 Mon Sep 17 00:00:00 2001 From: Boris Serebrov Date: Sun, 13 Nov 2022 11:40:42 -0500 Subject: [PATCH 2/3] Remove unused import. --- spec/search-spec.js | 1 - 1 file changed, 1 deletion(-) diff --git a/spec/search-spec.js b/spec/search-spec.js index 4fb7506..bd5b3a9 100644 --- a/spec/search-spec.js +++ b/spec/search-spec.js @@ -1,4 +1,3 @@ -import Vue from 'vue' import { mount } from '@vue/test-utils' import data from '../data/all.json' From 077efe77904a4a0b532acca03744c92740d74f07 Mon Sep 17 00:00:00 2001 From: Boris Serebrov Date: Sun, 13 Nov 2022 11:41:47 -0500 Subject: [PATCH 3/3] Comment out unused code. Keeping the code as an example of PROD/TEST env detection. --- docs/webpack.config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/webpack.config.js b/docs/webpack.config.js index 1a9c1f8..3366569 100644 --- a/docs/webpack.config.js +++ b/docs/webpack.config.js @@ -3,8 +3,8 @@ var pack = require('../package.json') var webpack = require('webpack') const VueLoaderPlugin = require('vue-loader/lib/plugin') -var PROD = process.env.NODE_ENV === 'production' -var TEST = process.env.NODE_ENV === 'test' +// var PROD = process.env.NODE_ENV === 'production' +// var TEST = process.env.NODE_ENV === 'test' var config = { entry: path.resolve('docs/index.js'),