Skip to content

Commit 7e36ce1

Browse files
committed
tests: update for override: true on public notify message
1 parent c6d7d16 commit 7e36ce1

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

test/specs/api/init.notify.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,15 @@ describe("API: .notify() - Public Notify Method", function () {
3131

3232
it("should emit the browser:notify event", function () {
3333
browserSync.notify("HI");
34-
sinon.assert.calledWithExactly(emitterStub, "browser:notify", {message: "HI", timeout: 2000});
34+
sinon.assert.calledWithExactly(emitterStub, "browser:notify", {message: "HI", timeout: 2000, override: true});
3535
});
3636
it("should emit the browser:notify event (2)", function () {
3737
browserSync.notify("HI There");
38-
sinon.assert.calledWithExactly(emitterStub, "browser:notify", {message: "HI There", timeout: 2000});
38+
sinon.assert.calledWithExactly(emitterStub, "browser:notify", {message: "HI There", timeout: 2000, override: true});
3939
});
4040
it("should emit the browser:notify event with a timeout", function () {
4141
browserSync.notify("HI There", 3000);
42-
sinon.assert.calledWithExactly(emitterStub, "browser:notify", {message: "HI There", timeout: 3000});
42+
sinon.assert.calledWithExactly(emitterStub, "browser:notify", {message: "HI There", timeout: 3000, override: true});
4343
});
4444
it("should NOT emit the browser:notify event if a message was not provided", function () {
4545
browserSync.notify();

0 commit comments

Comments
 (0)