Skip to content
This repository has been archived by the owner on Oct 26, 2021. It is now read-only.

Commit

Permalink
Merge pull request #15 from kobanyan/upgrade-types-sinon-chrome
Browse files Browse the repository at this point in the history
Upgrade @types/sinon-chrome
  • Loading branch information
kobanyan committed Mar 24, 2018
2 parents 28d46cc + da3d22a commit 6b79975
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
6 changes: 2 additions & 4 deletions __setup__/testSetup.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
import { configure } from 'enzyme';
import * as Adapter from 'enzyme-adapter-react-16';

const chrome = require('sinon-chrome');
const I18nPlugin = require('sinon-chrome/plugins').I18nPlugin;
import * as chrome from 'sinon-chrome';

import * as translations from '../resources/_locales/en/messages.json';

configure({ adapter: new Adapter() });

chrome.registerPlugin(new I18nPlugin(translations));
chrome.registerPlugin(new chrome.plugins.I18nPlugin(translations));

global['chrome'] = chrome;
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"@types/rimraf": "^2.0.2",
"@types/shelljs": "^0.7.8",
"@types/sinon": "^4.3.0",
"@types/sinon-chrome": "^2.2.0",
"@types/sinon-chrome": "^2.2.1",
"@types/webpack": "^3.8.8",
"awesome-typescript-loader": "^4.0.1",
"bumped": "^0.10.9",
Expand Down
6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,9 @@
"@types/glob" "*"
"@types/node" "*"

"@types/sinon-chrome@^2.2.0":
version "2.2.0"
resolved "https://registry.yarnpkg.com/@types/sinon-chrome/-/sinon-chrome-2.2.0.tgz#272b569deabc8116532368014ea14a55dd1d184e"
"@types/sinon-chrome@^2.2.1":
version "2.2.1"
resolved "https://registry.yarnpkg.com/@types/sinon-chrome/-/sinon-chrome-2.2.1.tgz#dad60fba2b44cf9653e0aa42ad3b5e19aeac592a"
dependencies:
"@types/chrome" "*"
"@types/sinon" "*"
Expand Down

0 comments on commit 6b79975

Please sign in to comment.