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 | account value map array', function (hooks) {
|
||||
setupTest(hooks);
|
||||
|
||||
test('it deserializes an array of account claims', function (assert) {
|
||||
assert.expect(1);
|
||||
const transform = this.owner.lookup('transform:account-value-map-array');
|
||||
const deserialized = transform.deserialize(['oid=sub', 'full_name=name']);
|
||||
assert.deepEqual(deserialized, [
|
||||
@@ -20,7 +19,6 @@ module('Unit | Transform | account value map array', function (hooks) {
|
||||
});
|
||||
|
||||
test('it serializes an array of account claims', function (assert) {
|
||||
assert.expect(1);
|
||||
const transform = this.owner.lookup('transform:account-value-map-array');
|
||||
const serialized = transform.serialize([
|
||||
{ from: 'oid', to: 'sub' },
|
||||
|
||||
@@ -10,7 +10,6 @@ module('Unit | Transform | duration', function (hooks) {
|
||||
setupTest(hooks);
|
||||
|
||||
test('it deserializes a duration string', function (assert) {
|
||||
assert.expect(8);
|
||||
const transform = this.owner.lookup('transform:duration');
|
||||
|
||||
const num1 = transform.deserialize('0s');
|
||||
@@ -33,7 +32,6 @@ module('Unit | Transform | duration', function (hooks) {
|
||||
});
|
||||
|
||||
test('it serializes a duration number', function (assert) {
|
||||
assert.expect(7);
|
||||
const transform = this.owner.lookup('transform:duration');
|
||||
const num1 = transform.serialize(0);
|
||||
const num2 = transform.serialize(undefined);
|
||||
|
||||
@@ -10,7 +10,6 @@ module('Unit | Transform | host source id 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:host-source-id-array');
|
||||
const deserialized = transform.deserialize([
|
||||
{ id: '123', host_catalog_id: '1' },
|
||||
@@ -21,7 +20,6 @@ module('Unit | Transform | host source id array', function (hooks) {
|
||||
});
|
||||
|
||||
test('it serializes an array of `{value}` to an array of strings', function (assert) {
|
||||
assert.expect(1);
|
||||
const transform = this.owner.lookup('transform:host-source-id-array');
|
||||
const serialized = transform.serialize([
|
||||
{ host_source_id: '123', host_catalog_id: '1' },
|
||||
|
||||
@@ -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([]);
|
||||
|
||||
|
||||
@@ -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