Frontend: Adapt tests for link.js
This commit is contained in:
parent
5aea2c883b
commit
395b5608f1
1 changed files with 0 additions and 17 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue