ui: Prefer using notOk(actual) instead of ok(!actual) in tests (#4925)

And make sure its consistent throughout the app
This commit is contained in:
John Cowen 2018-11-09 11:13:20 +00:00 committed by John Cowen
parent d6c1b9ed3f
commit 3879487ab8
10 changed files with 13 additions and 13 deletions

View File

@ -9,5 +9,5 @@ test('it returns true if the policy is the management policy', function(assert)
});
test("it returns false if the policy isn't the management policy", function(assert) {
const actual = isManagement([{ ID: '00000000-0000-0000-0000-000000000000' }]);
assert.ok(!actual);
assert.notOk(actual);
});

View File

@ -9,5 +9,5 @@ test('it returns true if the token is the anonymous token', function(assert) {
});
test("it returns false if the token isn't the anonymous token", function(assert) {
const actual = isAnonymous([{ AccessorID: '00000000-0000-0000-0000-000000000000' }]);
assert.ok(!actual);
assert.notOk(actual);
});

View File

@ -31,7 +31,7 @@ test('items are not found', function(assert) {
const actual = filter(item, {
s: '*',
});
assert.ok(!actual);
assert.notOk(actual);
});
});
test('items are found by *', function(assert) {

View File

@ -31,6 +31,6 @@ test('items are not found', function(assert) {
const actual = filter(item, {
s: 'hit',
});
assert.ok(!actual);
assert.notOk(actual);
});
});

View File

@ -25,6 +25,6 @@ test('items are not found', function(assert) {
const actual = filter(item, {
s: 'hit',
});
assert.ok(!actual);
assert.notOk(actual);
});
});

View File

@ -63,7 +63,7 @@ test('items are not found', function(assert) {
const actual = filter(item, {
s: 'hit',
});
assert.ok(!actual);
assert.notOk(actual);
});
});
test('tags can be empty', function(assert) {
@ -89,6 +89,6 @@ test('tags can be empty', function(assert) {
const actual = filter(item, {
s: 'hit',
});
assert.ok(!actual);
assert.notOk(actual);
});
});

View File

@ -31,6 +31,6 @@ test('items are not found', function(assert) {
const actual = filter(item, {
s: 'hit',
});
assert.ok(!actual);
assert.notOk(actual);
});
});

View File

@ -34,7 +34,7 @@ test('items are not found', function(assert) {
const actual = filter(item, {
s: 'hit',
});
assert.ok(!actual);
assert.notOk(actual);
});
});
test('tags can be empty', function(assert) {
@ -54,6 +54,6 @@ test('tags can be empty', function(assert) {
const actual = filter(item, {
s: 'hit',
});
assert.ok(!actual);
assert.notOk(actual);
});
});

View File

@ -51,6 +51,6 @@ test('items are not found', function(assert) {
const actual = filter(item, {
s: 'hit',
});
assert.ok(!actual);
assert.notOk(actual);
});
});

View File

@ -55,7 +55,7 @@ test('items are not found', function(assert) {
const actual = filter(item, {
s: 'hit',
});
assert.ok(!actual);
assert.notOk(actual);
});
});
test('policies can be empty', function(assert) {
@ -81,6 +81,6 @@ test('policies can be empty', function(assert) {
const actual = filter(item, {
s: 'hit',
});
assert.ok(!actual);
assert.notOk(actual);
});
});