-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BUGFIX] Rafraîchir la page lorsque le candidat clique sur le bouton …
- Loading branch information
Showing
5 changed files
with
33 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
mon-pix/tests/unit/components/assessments/live-alert-test.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { setupTest } from 'ember-qunit'; | ||
import createGlimmerComponent from 'mon-pix/tests/helpers/create-glimmer-component'; | ||
import { module, test } from 'qunit'; | ||
import sinon from 'sinon'; | ||
|
||
module('Unit | Component | Assessments | Live alert', function (hooks) { | ||
setupTest(hooks); | ||
|
||
module('#refreshPage', function () { | ||
test('should refresh page', async function (assert) { | ||
// given | ||
const routerService = this.owner.lookup('service:router'); | ||
sinon.stub(routerService, 'refresh'); | ||
const component = createGlimmerComponent('assessments/live-alert'); | ||
|
||
// when | ||
await component.refreshPage(); | ||
|
||
// then | ||
sinon.assert.calledOnce(component.router.refresh); | ||
assert.ok(true); | ||
}); | ||
}); | ||
}); |