Commit fedce9fb authored by Yannik Hoehnel's avatar Yannik Hoehnel

add mockup unit test for cards

parent 4d25e750
......@@ -59,6 +59,14 @@
"sweetAlert": true,
"swal": true,
"Tracker": true,
"ZingTouch": true
"ZingTouch": true,
/* MOCHA */
"describe" : false,
"it" : false,
"before" : false,
"beforeEach" : false,
"after" : false,
"afterEach" : false,
"assert" : false
}
}
......@@ -72,3 +72,4 @@ simple:json-routes
underscore@1.0.10
yasseraudio:multidatepicker
wekan:accounts-cas
meteortesting:mocha
......@@ -80,14 +80,19 @@ jquery@1.11.11
launch-screen@1.1.1
less@2.8.0
livedata@1.0.18
lmieulet:meteor-coverage@1.1.4
localstorage@1.2.0
logging@1.1.20
matb33:collection-hooks@0.8.4
mdg:validation-error@0.5.1
meteor@1.9.3
meteor-base@1.4.0
meteorhacks:picker@1.0.3
meteorhacks:ssr@2.2.0
meteorspark:util@0.2.0
meteortesting:browser-tests@1.0.0
meteortesting:mocha@1.1.3
meteortesting:mocha-core@1.0.1
mikowals:batch-insert@1.1.9
minifier-css@1.4.2
minifier-js@2.4.1
......
import '../../imports/api/cards.js';
import {Meteor} from "meteor/meteor";
import {assert} from "chai";
if (Meteor.isServer) {
describe('addCard', function () {
it('can create a new card', function () {
assert.equal(1, 1);
});
});
}
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -24,6 +24,7 @@
"version": "1.0.0",
"main": "index.js",
"devDependencies": {
"chai": "^4.2.0",
"chimpy": "^1.2.0",
"gulp-jscs": "^3.0.2",
"gulp-jshint": "^2.1.0",
......
import '../../imports/api/cards.js';
import '../../imports/startup/client/routes';
import {Meteor} from "meteor/meteor";
describe('addCard', () => {
it('can create a new card', () => {
Meteor.call('addCard', 'id', 'subject', 'content1', 'content2', 'content3', 'content4', 'content5', 'content6', true, 1, Date.now(), 1, 1);
});
});
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment