Created
March 28, 2016 09:35
-
-
Save dai-shi/0227418d9c9484236609 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/imports/api/tasks.tests.js b/imports/api/tasks.tests.js | |
index 05287ba..1359e85 100644 | |
--- a/imports/api/tasks.tests.js | |
+++ b/imports/api/tasks.tests.js | |
@@ -1,10 +1,26 @@ | |
/* eslint-env mocha */ | |
import { Meteor } from 'meteor/meteor'; | |
+import { Random } from 'meteor/random'; | |
+ | |
+import { Tasks } from './tasks.js'; | |
if (Meteor.isServer) { | |
describe('Tasks', () => { | |
describe('methods', () => { | |
+ const userId = Random.id(); | |
+ let taskId; | |
+ | |
+ beforeEach(() => { | |
+ Tasks.remove({}); | |
+ taskId = Tasks.insert({ | |
+ text: 'test task', | |
+ createdAt: new Date(), | |
+ owner: userId, | |
+ username: 'tmeasday', | |
+ }); | |
+ }); | |
+ | |
it('can delete owned task', () => { | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment