Frontend: Adapt tests for link.js

This commit is contained in:
Theresa Gresch 2020-07-03 15:40:51 +02:00
parent 5aea2c883b
commit 395b5608f1

View file

@ -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);