mirror of
https://github.com/datahub-project/datahub.git
synced 2025-10-30 02:07:04 +00:00
fix issue in service tests where assert was running after tests had finished
This commit is contained in:
parent
7ffb330b15
commit
4277c4060b
@ -7,7 +7,7 @@ test('it exists', function(assert) {
|
||||
assert.ok(service, 'Existence is a good start');
|
||||
});
|
||||
|
||||
test('it operates correctly', function(assert) {
|
||||
test('it operates correctly', async function(assert) {
|
||||
const service = this.subject();
|
||||
const message = 'Ash Ketchum from Pallet Town';
|
||||
|
||||
@ -17,7 +17,7 @@ test('it operates correctly', function(assert) {
|
||||
assert.equal(service.banners[0].content, message, 'Creates a banner with the right message');
|
||||
assert.equal(service.banners[0].isDismissable, true, 'Creates a banner with the right dismiss');
|
||||
|
||||
service.dequeue().then(() => {
|
||||
await service.dequeue().then(() => {
|
||||
assert.equal(service.banners.length, 0, 'Removes a banner correctly');
|
||||
});
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user