From 395b5608f18187bbac55178bf30ebfcb8f2e18e4 Mon Sep 17 00:00:00 2001 From: Theresa Gresch Date: Fri, 3 Jul 2020 15:40:51 +0200 Subject: [PATCH] Frontend: Adapt tests for link.js --- frontend/tests/unit/model/link_test.js | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/frontend/tests/unit/model/link_test.js b/frontend/tests/unit/model/link_test.js index adbc96779..365046c29 100644 --- a/frontend/tests/unit/model/link_test.js +++ b/frontend/tests/unit/model/link_test.js @@ -81,23 +81,6 @@ describe("model/link", () => { assert.equal(result.Token, "AcfgbTTh"); }); - //TODO - /*it.only("should remove link", (done) => { - const values = {UID: 5, Token: "AcfgbTTh", Slug: "friends", Share: "family"}; - const link = new Link(values); - link.remove().then( - (response) => { - console.log(response); - assert.equal(response, "share success"); - done(); - } - ).catch( - (error) => { - done(error); - } - ); - });*/ - it("should test expire", () => { const values = {UID: 5, Token: "AcfgbTTh", Slug: "friends", Share: "family", Expires: 80000, UpdatedAt: "2012-07-08T14:45:39Z"}; const link = new Link(values);