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
@@ -25,7 +25,6 @@ module('Unit | Serializer | auth method', function (hooks) {
|
||||
});
|
||||
|
||||
test('it serializes password records', function (assert) {
|
||||
assert.expect(2);
|
||||
let store = this.owner.lookup('service:store');
|
||||
let record = store.createRecord('auth-method', {
|
||||
type: TYPE_AUTH_METHOD_PASSWORD,
|
||||
@@ -41,7 +40,6 @@ module('Unit | Serializer | auth method', function (hooks) {
|
||||
});
|
||||
|
||||
test('it serializes OIDC records without state', function (assert) {
|
||||
assert.expect(1);
|
||||
let store = this.owner.lookup('service:store');
|
||||
let record = store.createRecord('auth-method', {
|
||||
type: TYPE_AUTH_METHOD_OIDC,
|
||||
@@ -93,7 +91,6 @@ module('Unit | Serializer | auth method', function (hooks) {
|
||||
});
|
||||
|
||||
test('it serializes LDAP records without state', function (assert) {
|
||||
assert.expect(1);
|
||||
let store = this.owner.lookup('service:store');
|
||||
let record = store.createRecord('auth-method', {
|
||||
type: TYPE_AUTH_METHOD_LDAP,
|
||||
@@ -158,7 +155,6 @@ module('Unit | Serializer | auth method', function (hooks) {
|
||||
});
|
||||
|
||||
test("OIDC auth-method doesn't serialize client secrets when not set", function (assert) {
|
||||
assert.expect(1);
|
||||
let store = this.owner.lookup('service:store');
|
||||
let record = store.createRecord('auth-method', {
|
||||
type: TYPE_AUTH_METHOD_OIDC,
|
||||
@@ -209,7 +205,6 @@ module('Unit | Serializer | auth method', function (hooks) {
|
||||
});
|
||||
|
||||
test("LDAP auth-method doesn't serialize client secrets when not set", function (assert) {
|
||||
assert.expect(1);
|
||||
let store = this.owner.lookup('service:store');
|
||||
let record = store.createRecord('auth-method', {
|
||||
type: TYPE_AUTH_METHOD_LDAP,
|
||||
@@ -273,7 +268,6 @@ module('Unit | Serializer | auth method', function (hooks) {
|
||||
});
|
||||
|
||||
test('it serializes OIDC records with only state and version when `adapterOptions.state` is passed', function (assert) {
|
||||
assert.expect(1);
|
||||
const store = this.owner.lookup('service:store');
|
||||
const serializer = store.serializerFor('auth-method');
|
||||
const record = store.createRecord('auth-method', {
|
||||
@@ -297,7 +291,6 @@ module('Unit | Serializer | auth method', function (hooks) {
|
||||
});
|
||||
|
||||
test('it serializes LDAP records with only state and version when `adapterOptions.state` is passed', function (assert) {
|
||||
assert.expect(1);
|
||||
const store = this.owner.lookup('service:store');
|
||||
const serializer = store.serializerFor('auth-method');
|
||||
const record = store.createRecord('auth-method', {
|
||||
@@ -321,7 +314,6 @@ module('Unit | Serializer | auth method', function (hooks) {
|
||||
});
|
||||
|
||||
test('it sorts primary first in normalizeArrayResponse', function (assert) {
|
||||
assert.expect(2);
|
||||
const store = this.owner.lookup('service:store');
|
||||
const serializer = store.serializerFor('auth-method');
|
||||
const modelClass = store.createRecord('auth-method').constructor;
|
||||
|
||||
Reference in new issue
Block a user