Skip to content

Commit

Permalink
fixing SystemMessages.spec.js
Browse files Browse the repository at this point in the history
  • Loading branch information
prakhyatox committed Feb 6, 2025
1 parent 91e5ca9 commit 36a2973
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/unit/components/Curators/SystemMessages.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,10 @@ describe("Curator -> SystemMessages.vue", () => {

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

it("can check showAddMessage method", async () => {
wrapper.vm.showAddMessage()
expect(wrapper.vm.dialogs.dialogs).toBe(true);
expect(wrapper.vm.dialogs.addMessage).toBe(true);
})

});

0 comments on commit 36a2973

Please sign in to comment.