Skip to content

Commit

Permalink
test(tests/): get specs working in ie9
Browse files Browse the repository at this point in the history
  • Loading branch information
vespertilian committed Oct 8, 2019
1 parent 07866cb commit 3bebdff
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 37 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ By default the inactivity timeout is reset by these events:
## Supports
- IE9+
- IE9 with core-js (import 'core-js/features/object/assign';)
- IE10+
- Chrome
- Firefox
- Safari
Expand Down
3 changes: 2 additions & 1 deletion karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ module.exports = function(config) {
webpack: {
mode: 'development',
module: webpackConfig.module,
resolve: webpackConfig.resolve
resolve: webpackConfig.resolve,
devtool: 'inline-source-map'
},

webpackMiddleware: {
Expand Down
67 changes: 35 additions & 32 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,16 @@
"author": "Cameron Batt",
"license": "MIT",
"devDependencies": {
"@types/jasmine": "^3.4.1",
"@types/jasmine": "^2.8.16",
"@types/node": "^12.7.9",
"commitizen": "^4.0.3",
"core-js": "^3.2.1",
"cross-env": "^1.0.8",
"cz-conventional-changelog": "^3.0.2",
"jasmine": "^3.5.0",
"jasmine": "^2.9.0",
"karma": "^4.3.0",
"karma-chrome-launcher": "^3.1.0",
"karma-jasmine": "^2.0.1",
"karma-jasmine": "^1.1.2",
"karma-sauce-launcher": "^2.0.2",
"karma-spec-reporter": "^0.0.32",
"karma-webpack": "^4.0.2",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import {InactivityCountdownTimer, IInactivityConfig} from "../src/inactivity-countdown-timer";
import 'core-js/features/object/assign';

describe('Inactivity logout -', () => {
function setup(params?: IInactivityConfig): {IL: InactivityCountdownTimer} {
const IL = new InactivityCountdownTimer();
Expand Down

0 comments on commit 3bebdff

Please sign in to comment.