diff options
author | Raimund Schlüßler <raimund.schluessler@mailbox.org> | 2019-10-24 22:55:54 +0300 |
---|---|---|
committer | Raimund Schlüßler <raimund.schluessler@mailbox.org> | 2019-10-26 14:59:05 +0300 |
commit | b87f498bc6750f82093ed92c7ecd8ebc1cfd6f5c (patch) | |
tree | e75db4c0fe96a1284d59902c5f182985f46ea539 /tests | |
parent | e59a9e555313f5c7fc0f4301c629b34ba13ca4c8 (diff) |
Add test for setting and getting uid, fix model
Signed-off-by: Raimund Schlüßler <raimund.schluessler@mailbox.org>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/models/task.spec.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/models/task.spec.js b/tests/models/task.spec.js index d25423d7..66e0d774 100644 --- a/tests/models/task.spec.js +++ b/tests/models/task.spec.js @@ -63,4 +63,11 @@ describe('task', () => { expect(task.complete).toBeLessThan(100) expect(task.completed).toEqual(false) }) + + it('Should set and get the uid', () => { + const task = new Task(vCalendar, {}) + expect(task.uid).toEqual('pwen4kz18g') + task.uid = 'pwen4kz19g' + expect(task.uid).toEqual('pwen4kz19g') + }) }) |