chore: 🤖 Upgrade eslint-plugin-qunit (#2011)
* chore: 🤖 Upgrade eslint-plugin-qunit
* Delete unnecessary assert.expect from tests
This commit is contained in:
1 parent
a94572214c
commit
b51c8203ee
227 files changed
+32
-1179
No files matched your search
@@ -10,7 +10,6 @@ module('Unit | Transform | string array', function (hooks) {
|
||||
setupTest(hooks);
|
||||
|
||||
test('it deserializes an array of strings to an array of `{value}`', function (assert) {
|
||||
assert.expect(1);
|
||||
const transform = this.owner.lookup('transform:string-array');
|
||||
const deserialized = transform.deserialize(['a', 'bee', 'Hello World']);
|
||||
assert.deepEqual(deserialized, [
|
||||
@@ -21,14 +20,12 @@ module('Unit | Transform | string array', function (hooks) {
|
||||
});
|
||||
|
||||
test('it deserializes null to an empty array', function (assert) {
|
||||
assert.expect(1);
|
||||
const transform = this.owner.lookup('transform:string-array');
|
||||
const deserialized = transform.deserialize(null);
|
||||
assert.deepEqual(deserialized, []);
|
||||
});
|
||||
|
||||
test('it serializes an array of `{value}` to an array of strings', function (assert) {
|
||||
assert.expect(1);
|
||||
const transform = this.owner.lookup('transform:string-array');
|
||||
const serialized = transform.serialize([
|
||||
{ value: 'a' },
|
||||
@@ -39,7 +36,6 @@ module('Unit | Transform | string array', function (hooks) {
|
||||
});
|
||||
|
||||
test('it serializes null to an empty array', function (assert) {
|
||||
assert.expect(1);
|
||||
const transform = this.owner.lookup('transform:string-array');
|
||||
const serialized = transform.serialize(null);
|
||||
assert.deepEqual(serialized, []);
|
||||
|
||||
Reference in new issue
Block a user