Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 2 additions & 9 deletions components/checkbox-ng/checkbox-ng.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ import 'dom4';
import 'angular';
import 'angular-mocks';

import sniffer from '../global/sniffer';

import Checkbox from './checkbox-ng';

describe('Checkbox Ng', () => {
Expand Down Expand Up @@ -34,13 +32,8 @@ describe('Checkbox Ng', () => {
});

it('should have been set checked by click', () => {
if (sniffer.browser.name === 'ie') {
return;
}

const click = new MouseEvent('click');
// Doesn't trigger handler in IE for some reason
element.query('input').dispatchEvent(click);
element.query('input').dispatchEvent(new MouseEvent('click'));
element.query('input').dispatchEvent(new Event('change'));

iElement.controller('ngModel').$viewValue.should.be.true;
});
Expand Down
11 changes: 2 additions & 9 deletions components/radio-ng/radio-ng.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ import 'dom4';
import 'angular';
import 'angular-mocks';

import sniffer from '../global/sniffer';

import Radio from './radio-ng';

describe('Radio Ng', () => {
Expand Down Expand Up @@ -45,13 +43,8 @@ describe('Radio Ng', () => {
});

it('should have been set checked by click', () => {
if (sniffer.browser.name === 'ie') {
return;
}

const click = new MouseEvent('click');
// Doesn't trigger handler in IE for some reason
element.query('input[value=two]').dispatchEvent(click);
element.query('input[value=two]').dispatchEvent(new MouseEvent('click'));
element.query('input[value=two]').dispatchEvent(new Event('change'));

scope.radioModel.should.equal('two');
});
Expand Down
149 changes: 93 additions & 56 deletions package-lock.json

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

12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,9 @@
"@jetbrains/eslint-config": "4.0.2",
"@jetbrains/generator-ring-ui": "^1.0.0-beta.158",
"@jetbrains/stylelint-config": "^1.3.3",
"angular": "1.6.10",
"angular-mocks": "1.6.10",
"angular-route": "1.6.10",
"angular": "1.7.3",
"angular-mocks": "1.7.3",
"angular-route": "1.7.3",
"babel-cli": "6.26.0",
"babel-eslint": "8.2.6",
"babel-plugin-istanbul": "5.0.0",
Expand All @@ -114,8 +114,8 @@
"docpack-jsdoc-extractor": "0.0.7",
"docpack-markdown-extractor": "0.0.3",
"docpack-page-generator": "0.0.8",
"electron": "2.0.6",
"enzyme": "3.3.0",
"electron": "2.0.7",
"enzyme": "3.4.1",
"enzyme-adapter-react-16": "1.1.1",
"enzyme-context-patch": "0.0.9",
"eslint": "^5.3.0",
Expand Down Expand Up @@ -188,7 +188,7 @@
"html-loader": "0.5.5",
"imports-loader": "0.8.0",
"interpolate-loader": "^1.0.0",
"just-debounce-it": "1.0.1",
"just-debounce-it": "1.1.0",
"moment": "2.22.2",
"pascal-case": "2.0.1",
"postcss": "7.0.2",
Expand Down