Skip to content

Commit

Permalink
updating to latest dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Carlin committed Jun 28, 2019
1 parent 1991e96 commit 86dbeea
Show file tree
Hide file tree
Showing 8 changed files with 9,700 additions and 15,097 deletions.
2 changes: 1 addition & 1 deletion .babelrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"presets": ["es2015"]
"presets": ["@babel/preset-env"]
}
11 changes: 3 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,9 @@ node_js: # note: node v12+ doesn't work with gulp 3
- 6
install:
- npm install -g gulp-cli
- npm install -g mocha
- npm install phantomjs -g
- npm install -g mocha-phantomjs
- npm install -g jest-cli
before_script:
— mocha —version
- mocha
— phantomjs —version
 — mocha-phantomjs —version
- mocha-phantomjs test/spec/index.html
— gulp —version
— jest —version
script:
- gulp build
24,636 changes: 9,621 additions & 15,015 deletions package-lock.json

Large diffs are not rendered by default.

42 changes: 23 additions & 19 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,29 +28,33 @@
}
},
"devDependencies": {
"babel-core": "^6.26.3",
"babel-preset-es2015": "^6.24.1",
"babel-register": "^6.26.0",
"@babel/core": "^7.4.5",
"@babel/preset-env": "^7.4.5",
"@babel/register": "^7.4.4",
"del": "^4.1.1",
"gulp": "^3.9.1",
"gulp-cache": "^0.4.3",
"gulp": "^4.0.2",
"gulp-cache": "^1.1.2",
"gulp-chrome-manifest": "0.0.13",
"gulp-clean-css": "^2.0.3",
"gulp-eslint": "^2.0.0",
"gulp-htmlmin": "^2.0.0",
"gulp-if": "^2.0.0",
"gulp-imagemin": "^3.0.0",
"gulp-livereload": "^3.8.1",
"gulp-load-plugins": "^1.2.0",
"gulp-size": "^2.1.0",
"gulp-sourcemaps": "^1.6.0",
"gulp-uglify": "^1.5.3",
"gulp-useref": "^3.0.8",
"gulp-zip": "^3.2.0",
"gulp-clean-css": "^4.2.0",
"gulp-eslint": "^5.0.0",
"gulp-htmlmin": "^5.0.1",
"gulp-if": "^2.0.2",
"gulp-imagemin": "^6.0.0",
"gulp-livereload": "^4.0.1",
"gulp-load-plugins": "^1.6.0",
"gulp-size": "^3.0.0",
"gulp-sourcemaps": "^2.6.5",
"gulp-uglify": "^3.0.2",
"gulp-useref": "^3.1.6",
"gulp-zip": "^5.0.0",
"jest": "^24.8.0",
"run-sequence": "^1.1.5",
"jest-cli": "^24.8.0",
"run-sequence": "^2.2.1",
"sinon-chrome": "^3.0.1",
"wiredep": "^4.0.0"
},
"dependencies": {}
"dependencies": {},
"scripts": {
"test": "jest"
}
}
23 changes: 23 additions & 0 deletions test/background.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// background.js tests
'use strict';

// Mock out Chrome's extension APIs
import vm from 'vm';
import fs from 'fs';
import chrome from 'sinon-chrome';
window.chrome = chrome;

describe('background.js', function() {
// test('should render Main component', () => {
// const getUrl = function() {
// return chrome.runtime.getURL('popup-content.html');
// };
// chrome.runtime.getURL.returns('http://localhost:1234/index.html');
// const { container } = render(<Main getUrl={getUrl} />);
// expect(container).toMatchSnapshot();
// });

test('should return -1 when the value is not present', () => {
expect([1, 2, 3].indexOf(4)).toBe(-1);
});
});
29 changes: 29 additions & 0 deletions test/spec/ate.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
// ate.js tests
'use strict';

// Mock out Chrome's extension APIs
import vm from 'vm';
import fs from 'fs';
import chrome from 'sinon-chrome';
window.chrome = chrome;

describe('initialization', function() {
it('should pass', function() {
expect(true).toBeTruthy();
});
// describe('jquery init', function() {
// it('should be available as a function', function() {
// expect(typeof window.jQuery).to.equal('function');
// });
// });
// describe('moment init', function() {
// it('should be available as a function', function() {
// expect(typeof window.moment).to.equal('function');
// });
// });
// describe('constants init', function() {
// it('should have PROD chrome extension ID', function() {
// expect(APP_ID_PRODUCTION).to.equal('iibninhmiggehlcdolcilmhacighjamp');
// });
// });
});
26 changes: 0 additions & 26 deletions test/spec/test.js

This file was deleted.

28 changes: 0 additions & 28 deletions test/test.js

This file was deleted.

0 comments on commit 86dbeea

Please sign in to comment.