forked from pviswanathan/ChromeAutoTextExpander
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Carlin
committed
Jun 28, 2019
1 parent
1991e96
commit 86dbeea
Showing
8 changed files
with
9,700 additions
and
15,097 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"presets": ["es2015"] | ||
"presets": ["@babel/preset-env"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'); | ||
// }); | ||
// }); | ||
}); |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.