chore: 🤖 Upgrade eslint-plugin-qunit (#2011)

* chore: 🤖 Upgrade eslint-plugin-qunit

* Delete unnecessary assert.expect from tests
This commit is contained in:
Carlos Alcaide Corvo authored and GitHub committed 2023-12-08 12:56:00 -08:00
1 parent a94572214c
commit b51c8203ee
227 files changed
+32 -1179

No files matched your search

@@ -10,7 +10,6 @@ module('Unit | Transform | object as array', function (hooks) {
setupTest(hooks);
test('it deserializes an object to an array of key value objects', function (assert) {
assert.expect(1);
let transform = this.owner.lookup('transform:object-as-array');
const deserialized = transform.deserialize({
first: 'Hey',
@@ -25,14 +24,12 @@ module('Unit | Transform | object as array', function (hooks) {
});
test('it deserializes undefined to an empty object', function (assert) {
assert.expect(1);
let transform = this.owner.lookup('transform:object-as-array');
const deserialized = transform.deserialize(undefined);
assert.deepEqual(deserialized, []);
});
test('it serializes an array of key value objects to an object', function (assert) {
assert.expect(1);
let transform = this.owner.lookup('transform:object-as-array');
const serialized = transform.serialize([
{ key: 'first', value: 'Hey' },
@@ -48,7 +45,6 @@ module('Unit | Transform | object as array', function (hooks) {
});
test('it serializes an empty array of key value objects to null', function (assert) {
assert.expect(1);
let transform = this.owner.lookup('transform:object-as-array');
const serialized = transform.serialize([]);