From 13adcbb49780dbb6897a125fdfb5e6a0cbdcc29f Mon Sep 17 00:00:00 2001 From: Julian Krispel Date: Fri, 10 Nov 2017 12:05:48 +0000 Subject: [PATCH] update version --- .nvmrc | 1 + .travis.yml | 2 +- draft-js-plugins-editor/src/Editor/__test__/index.js | 2 +- testHelper.js | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 .nvmrc diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 0000000000..45a4fb75db --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +8 diff --git a/.travis.yml b/.travis.yml index 010cc90699..2ee7ebf78f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,6 @@ language: node_js node_js: -- "5" +- "8" sudo: false script: - npm test diff --git a/draft-js-plugins-editor/src/Editor/__test__/index.js b/draft-js-plugins-editor/src/Editor/__test__/index.js index b784188eb1..9101530144 100644 --- a/draft-js-plugins-editor/src/Editor/__test__/index.js +++ b/draft-js-plugins-editor/src/Editor/__test__/index.js @@ -654,7 +654,7 @@ describe('Editor', () => { expect(pluginComponents.length).to.equal(1); }); - it.skip('uses both custom and simple decorators in plugins', () => { + it('uses both custom and simple decorators in plugins', () => { const simplePluginDecoratorStrategy = sinon.spy(plugin.decorators[0], 'strategy'); const customPluginDecorator = sinon.spy(plugin.decorators[1], 'getDecorations'); const decoratorStrategy = sinon.spy(decorator, 'strategy'); diff --git a/testHelper.js b/testHelper.js index 043498aa84..3137630f10 100644 --- a/testHelper.js +++ b/testHelper.js @@ -15,7 +15,7 @@ const { window } = jsdom; function copyProps(src, target) { const props = Object.getOwnPropertyNames(src) - .filter(prop => typeof target[prop] === 'undefined') + .filter((prop) => typeof target[prop] === 'undefined') .reduce((result, prop) => ({ ...result, [prop]: Object.getOwnPropertyDescriptor(src, prop),