Skip to content

Commit

Permalink
Merge pull request #673 from simplabs/dependabot/npm_and_yarn/prettie…
Browse files Browse the repository at this point in the history
…r-2.0.4

build(deps-dev): bump prettier from 1.19.1 to 2.0.4
  • Loading branch information
Turbo87 authored Apr 10, 2020
2 parents 375fc22 + 8db0968 commit 3cfe9b3
Show file tree
Hide file tree
Showing 41 changed files with 46 additions and 141 deletions.
1 change: 1 addition & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/* eslint-env node */

module.exports = {
arrowParens: 'avoid',
singleQuote: true,
trailingComma: 'es5',
printWidth: 100,
Expand Down
2 changes: 1 addition & 1 deletion ember-cli-build.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

const EmberAddon = require('ember-cli/lib/broccoli/ember-addon');

module.exports = function(defaults) {
module.exports = function (defaults) {
let app = new EmberAddon(defaults, {
// Add options here
});
Expand Down
5 changes: 1 addition & 4 deletions lib/__tests__/does-not-exist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,7 @@ describe('assert.dom(...).doesNotExist()', () => {
test('supports chaining', () => {
document.body.innerHTML = '<h1 class="baz">foo</h1>bar';

assert
.dom('h2')
.doesNotExist()
.doesNotExist();
assert.dom('h2').doesNotExist().doesNotExist();

expect(assert.results.length).toEqual(2);
});
Expand Down
5 changes: 1 addition & 4 deletions lib/__tests__/does-not-have-attribute.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,7 @@ describe('assert.dom(...).doesNotHaveAttribute()', () => {
});

test('supports chaining', () => {
assert
.dom('input')
.doesNotHaveAttribute('disabled')
.doesNotHaveAttribute('required');
assert.dom('input').doesNotHaveAttribute('disabled').doesNotHaveAttribute('required');

expect(assert.results.length).toEqual(2);
});
Expand Down
5 changes: 1 addition & 4 deletions lib/__tests__/does-not-have-class.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,7 @@ describe('assert.dom(...).doesNotHaveClass()', () => {
test('supports chaining', () => {
document.body.innerHTML = '<h1 class="bar">foo</h1>';

assert
.dom('h1')
.doesNotHaveClass('foo')
.doesNotHaveClass('bar');
assert.dom('h1').doesNotHaveClass('foo').doesNotHaveClass('bar');

expect(assert.results.length).toEqual(2);
});
Expand Down
5 changes: 1 addition & 4 deletions lib/__tests__/does-not-have-style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,7 @@ describe('assert.dom(...).doesNotHaveStyle()', () => {
});

test('supports chaining', () => {
assert
.dom('h2')
.doesNotHaveStyle({ left: 0 })
.doesNotHaveStyle({ top: 0 });
assert.dom('h2').doesNotHaveStyle({ left: 0 }).doesNotHaveStyle({ top: 0 });

expect(assert.results.length).toEqual(2);
});
Expand Down
5 changes: 1 addition & 4 deletions lib/__tests__/does-not-have-tagname.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,10 +157,7 @@ describe('assert.dom(...).doesNotHaveTagName()', () => {
test('supports chaining', () => {
document.body.innerHTML = '<h1 class="bar">foo</h1>';

assert
.dom('h1')
.doesNotHaveTagName('div')
.doesNotHaveTagName('h1');
assert.dom('h1').doesNotHaveTagName('div').doesNotHaveTagName('h1');

expect(assert.results.length).toEqual(2);
});
Expand Down
5 changes: 1 addition & 4 deletions lib/__tests__/does-not-include-text.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,7 @@ describe('assert.dom(...).doesNotIncludeText()', () => {
test('supports chaining', () => {
document.body.innerHTML = '<h1 class="bar">foo</h1>';

assert
.dom('h1')
.doesNotIncludeText('foo')
.doesNotIncludeText('bar');
assert.dom('h1').doesNotIncludeText('foo').doesNotIncludeText('bar');

expect(assert.results.length).toEqual(2);
});
Expand Down
5 changes: 1 addition & 4 deletions lib/__tests__/does-not-match-selector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,7 @@ describe('assert.dom(...).doesNotMatchSelector()', () => {
test('supports chaining', () => {
document.body.innerHTML = '<h1 class="bar">foo</h1>';

assert
.dom('h1')
.doesNotMatchSelector('.foo')
.doesNotMatchSelector('.bar');
assert.dom('h1').doesNotMatchSelector('.foo').doesNotMatchSelector('.bar');

expect(assert.results.length).toEqual(2);
});
Expand Down
5 changes: 1 addition & 4 deletions lib/__tests__/exists.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,10 +183,7 @@ describe('assert.dom(...).exists()', () => {
test('supports chaining', () => {
document.body.innerHTML = '<h1 class="bar">foo</h1>';

assert
.dom('h1')
.exists()
.exists();
assert.dom('h1').exists().exists();

expect(assert.results.length).toEqual(2);
});
Expand Down
5 changes: 1 addition & 4 deletions lib/__tests__/has-any-text.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,7 @@ describe('assert.dom(...).hasAnyText()', () => {
test('supports chaining', () => {
document.body.innerHTML = '<h1 class="bar">foo</h1>';

assert
.dom('h1')
.hasAnyText()
.hasAnyText();
assert.dom('h1').hasAnyText().hasAnyText();

expect(assert.results.length).toEqual(2);
});
Expand Down
5 changes: 1 addition & 4 deletions lib/__tests__/has-any-value.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,7 @@ describe('assert.dom(...).hasAnyValue()', () => {
test('supports chaining', () => {
document.body.innerHTML = '<input value="foo"/>';

assert
.dom('input')
.hasAnyValue()
.hasAnyValue();
assert.dom('input').hasAnyValue().hasAnyValue();

expect(assert.results.length).toEqual(2);
});
Expand Down
5 changes: 1 addition & 4 deletions lib/__tests__/has-attribute.ts
Original file line number Diff line number Diff line change
Expand Up @@ -273,10 +273,7 @@ describe('assert.dom(...).hasAttribute()', () => {
test('supports chaining', () => {
document.body.innerHTML = '<h1 class="bar">foo</h1>';

assert
.dom('h1')
.hasAttribute('class')
.hasAttribute('class', 'bar');
assert.dom('h1').hasAttribute('class').hasAttribute('class', 'bar');

expect(assert.results.length).toEqual(2);
});
Expand Down
5 changes: 1 addition & 4 deletions lib/__tests__/has-class.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,7 @@ describe('assert.dom(...).hasClass()', () => {
test('supports chaining', () => {
document.body.innerHTML = '<h1 class="bar">foo</h1>';

assert
.dom('h1')
.hasClass('foo')
.hasClass('bar');
assert.dom('h1').hasClass('foo').hasClass('bar');

expect(assert.results.length).toEqual(2);
});
Expand Down
5 changes: 1 addition & 4 deletions lib/__tests__/has-no-text.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,7 @@ describe('assert.dom(...).hasNoText()', () => {
test('supports chaining', () => {
document.body.innerHTML = '<h1 class="bar">foo</h1>';

assert
.dom('h1')
.hasNoText()
.hasNoText();
assert.dom('h1').hasNoText().hasNoText();

expect(assert.results.length).toEqual(2);
});
Expand Down
5 changes: 1 addition & 4 deletions lib/__tests__/has-no-value.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,7 @@ describe('assert.dom(...).hasNoValue()', () => {
test('supports chaining', () => {
document.body.innerHTML = '<input value="foo" />';

assert
.dom('input')
.hasNoValue()
.hasNoValue();
assert.dom('input').hasNoValue().hasNoValue();

expect(assert.results.length).toEqual(2);
});
Expand Down
5 changes: 1 addition & 4 deletions lib/__tests__/has-property.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,7 @@ describe('assert.dom(...).hasProperty()', () => {
test('supports chaining', () => {
document.body.innerHTML = '<h1 class="bar">foo</h1>';

assert
.dom('h1')
.hasProperty('className', 'foo')
.hasProperty('tagName', 'BAR');
assert.dom('h1').hasProperty('className', 'foo').hasProperty('tagName', 'BAR');

expect(assert.results.length).toEqual(2);
});
Expand Down
5 changes: 1 addition & 4 deletions lib/__tests__/has-style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,7 @@ describe('assert.dom(...).hasStyle()', () => {
test('supports chaining', () => {
document.body.innerHTML = '<h1 class="bar">foo</h1>';

assert
.dom('h1')
.hasStyle({ top: 42 })
.hasStyle({ left: 0 });
assert.dom('h1').hasStyle({ top: 42 }).hasStyle({ left: 0 });

expect(assert.results.length).toEqual(2);
});
Expand Down
5 changes: 1 addition & 4 deletions lib/__tests__/has-tagname.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,10 +153,7 @@ describe('assert.dom(...).hasTagName()', () => {
test('supports chaining', () => {
document.body.innerHTML = '<h1 class="bar">foo</h1>';

assert
.dom('h1')
.hasTagName('h1')
.hasTagName('foo');
assert.dom('h1').hasTagName('h1').hasTagName('foo');

expect(assert.results.length).toEqual(2);
});
Expand Down
5 changes: 1 addition & 4 deletions lib/__tests__/has-text.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,10 +153,7 @@ describe('assert.dom(...).hasText()', () => {
test('supports chaining', () => {
document.body.innerHTML = '<h1 class="bar">foo</h1>';

assert
.dom('h1')
.hasText('foo')
.hasText('bar');
assert.dom('h1').hasText('foo').hasText('bar');

expect(assert.results.length).toEqual(2);
});
Expand Down
5 changes: 1 addition & 4 deletions lib/__tests__/has-value.ts
Original file line number Diff line number Diff line change
Expand Up @@ -238,10 +238,7 @@ describe('assert.dom(...).hasValue()', () => {
test('supports chaining', () => {
document.body.innerHTML = '<input value="foo" />';

assert
.dom('input')
.hasValue('foo')
.hasValue('bar');
assert.dom('input').hasValue('foo').hasValue('bar');

expect(assert.results.length).toEqual(2);
});
Expand Down
5 changes: 1 addition & 4 deletions lib/__tests__/includes-text.ts
Original file line number Diff line number Diff line change
Expand Up @@ -228,10 +228,7 @@ describe('assert.dom(...).includesText()', () => {
test('supports chaining', () => {
document.body.innerHTML = '<h1 class="bar">foo</h1>';

assert
.dom('h1')
.includesText('foo')
.includesText('bar');
assert.dom('h1').includesText('foo').includesText('bar');

expect(assert.results.length).toEqual(2);
});
Expand Down
5 changes: 1 addition & 4 deletions lib/__tests__/is-checked.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,10 +192,7 @@ describe('assert.dom(...).isChecked()', () => {
test('supports chaining', () => {
document.body.innerHTML = '<input type="checkbox" />';

assert
.dom('input')
.isChecked()
.isChecked();
assert.dom('input').isChecked().isChecked();

expect(assert.results.length).toEqual(2);
});
Expand Down
5 changes: 1 addition & 4 deletions lib/__tests__/is-disabled.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,10 +165,7 @@ describe('assert.dom(...).isDisabled()', () => {
test('supports chaining', () => {
document.body.innerHTML = '<input disabled />';

assert
.dom('input')
.isDisabled()
.isDisabled();
assert.dom('input').isDisabled().isDisabled();

expect(assert.results.length).toEqual(2);
});
Expand Down
5 changes: 1 addition & 4 deletions lib/__tests__/is-focused.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,7 @@ describe('assert.dom(...).isFocused()', () => {
test('supports chaining', () => {
document.body.innerHTML = '<input type="checkbox" />';

assert
.dom('input')
.isFocused()
.isFocused();
assert.dom('input').isFocused().isFocused();

expect(assert.results.length).toEqual(2);
});
Expand Down
5 changes: 1 addition & 4 deletions lib/__tests__/is-not-checked.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,10 +192,7 @@ describe('assert.dom(...).isNotChecked()', () => {
test('supports chaining', () => {
document.body.innerHTML = '<input type="checkbox" />';

assert
.dom('input')
.isNotChecked()
.isNotChecked();
assert.dom('input').isNotChecked().isNotChecked();

expect(assert.results.length).toEqual(2);
});
Expand Down
5 changes: 1 addition & 4 deletions lib/__tests__/is-not-disabled.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,10 +165,7 @@ describe('assert.dom(...).isNotDisabled()', () => {
test('supports chaining', () => {
document.body.innerHTML = '<input type="checkbox" />';

assert
.dom('input')
.isNotDisabled()
.isNotDisabled();
assert.dom('input').isNotDisabled().isNotDisabled();

expect(assert.results.length).toEqual(2);
});
Expand Down
5 changes: 1 addition & 4 deletions lib/__tests__/is-not-focused.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,7 @@ describe('assert.dom(...).isNotFocused()', () => {
test('supports chaining', () => {
document.body.innerHTML = '<input type="checkbox" />';

assert
.dom('input')
.isNotFocused()
.isNotFocused();
assert.dom('input').isNotFocused().isNotFocused();

expect(assert.results.length).toEqual(2);
});
Expand Down
5 changes: 1 addition & 4 deletions lib/__tests__/is-not-required.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,7 @@ describe('assert.dom(...).isNotRequired()', () => {
test('supports chaining', () => {
document.body.innerHTML = '<input type="checkbox" />';

assert
.dom('input')
.isNotRequired()
.isNotRequired();
assert.dom('input').isNotRequired().isNotRequired();

expect(assert.results.length).toEqual(2);
});
Expand Down
5 changes: 1 addition & 4 deletions lib/__tests__/is-not-visible.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,7 @@ describe('assert.dom(...).isNotVisible()', () => {
test('supports chaining', () => {
document.body.innerHTML = '<input type="checkbox" />';

assert
.dom('input')
.isNotVisible()
.isNotVisible();
assert.dom('input').isNotVisible().isNotVisible();

expect(assert.results.length).toEqual(2);
});
Expand Down
5 changes: 1 addition & 4 deletions lib/__tests__/is-required.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,7 @@ describe('assert.dom(...).isRequired()', () => {
test('supports chaining', () => {
document.body.innerHTML = '<input type="checkbox" />';

assert
.dom('input')
.isRequired()
.isRequired();
assert.dom('input').isRequired().isRequired();

expect(assert.results.length).toEqual(2);
});
Expand Down
5 changes: 1 addition & 4 deletions lib/__tests__/is-visible.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,7 @@ describe('assert.dom(...).isVisible()', () => {
test('supports chaining', () => {
document.body.innerHTML = '<input type="checkbox" />';

assert
.dom('input')
.isVisible()
.isVisible();
assert.dom('input').isVisible().isVisible();

expect(assert.results.length).toEqual(2);
});
Expand Down
5 changes: 1 addition & 4 deletions lib/__tests__/matches-selector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,7 @@ describe('assert.dom(...).matchesSelector()', () => {
test('supports chaining', () => {
document.body.innerHTML = '<input type="checkbox" />';

assert
.dom('input')
.matchesSelector('.foo')
.matchesSelector('.bar');
assert.dom('input').matchesSelector('.foo').matchesSelector('.bar');

expect(assert.results.length).toEqual(2);
});
Expand Down
Loading

0 comments on commit 3cfe9b3

Please sign in to comment.