feat: 🎸 badge migration in sessions admin ui (#1437)
* chore: badge migration in sessions admin ui
This commit is contained in:
1 parent
02b6afa5e7
commit
ee8182e262
8 files changed
+145
-3
No files matched your search
@@ -59,4 +59,15 @@ module('Unit | Model | session', function (hooks) {
|
||||
});
|
||||
assert.strictEqual(model.proxy, 'localhost:12345');
|
||||
});
|
||||
|
||||
test('it has isUnknownStatus property and returns the expected values', async function (assert) {
|
||||
assert.expect(2);
|
||||
const store = this.owner.lookup('service:store');
|
||||
const modelA = store.createRecord('session', { status: 'active' });
|
||||
const modelB = store.createRecord('session', {
|
||||
status: 'any string',
|
||||
});
|
||||
assert.false(modelA.isUnknownStatus);
|
||||
assert.true(modelB.isUnknownStatus);
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user