chore: 🤖 add refreshRouteOnChange option to resource filters (#1289)

This commit is contained in:
Randall Morey authored and GitHub committed 2022-09-01 13:27:34 -04:00
1 parent 2614b311a1
commit 3ff89279e6
14 files changed
+92 -54

No files matched your search

@@ -32,7 +32,10 @@ module('Unit | Authenticator | password', function (hooks) {
return new Response(200);
});
authenticator.restore(mockData);
assert.strictEqual(applicationAdapter.headers.Authorization, 'Bearer token1234');
assert.strictEqual(
applicationAdapter.headers.Authorization,
'Bearer token1234'
);
});
test('it adds an authorization header to application adapter on authenticate', async function (assert) {
@@ -18,9 +18,17 @@ module('Unit | Service | confirm', function (hooks) {
assert.expect(3);
const service = this.owner.lookup('service:confirm');
service.enabled = true;
assert.strictEqual(service.pending.length, 0, 'No pending confirmations yet');
assert.strictEqual(
service.pending.length,
0,
'No pending confirmations yet'
);
const confirmation = service.confirm();
assert.strictEqual(service.pending.length, 1, 'One pending confirmation created');
assert.strictEqual(
service.pending.length,
1,
'One pending confirmation created'
);
confirmation.confirm();
assert.strictEqual(service.pending.length, 0, 'Confirmation was confirmed');
});