Skip to content

Commit 36a2973

Browse files
committed
fixing SystemMessages.spec.js
1 parent 91e5ca9 commit 36a2973

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/unit/components/Curators/SystemMessages.spec.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,10 @@ describe("Curator -> SystemMessages.vue", () => {
8686

8787
it("can add messages is success", async () => {
8888
wrapper.vm.dialogs.newMessage = "success";
89-
restStub.restore();
90-
restStub = sinon.stub(Client.prototype, "executeQuery").returns({
91-
data: {message: curationDataSummary.messages}
92-
});
89+
// restStub.restore();
90+
// restStub = sinon.stub(Client.prototype, "executeQuery").returns({
91+
// data: {message: curationDataSummary.messages}
92+
// });
9393
// wrapper.vm.addMessage();
9494
// console.log("wrapper.vm.systemMessages::", wrapper.vm.systemMessages.created_at)
9595
// expect(wrapper.vm.systemMessages.length).toEqual(1);
@@ -165,7 +165,7 @@ describe("Curator -> SystemMessages.vue", () => {
165165

166166
it("can check showAddMessage method", async () => {
167167
wrapper.vm.showAddMessage()
168-
expect(wrapper.vm.dialogs.dialogs).toBe(true);
168+
expect(wrapper.vm.dialogs.addMessage).toBe(true);
169169
})
170170

171171
});

0 commit comments

Comments
 (0)