mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 07:20:12 +01:00
initial tests added
This commit is contained in:
parent
7daa67c792
commit
20452d7296
5 changed files with 252 additions and 7 deletions
30
tests/main.js
Normal file
30
tests/main.js
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
/* eslint-env mocha */
|
||||
|
||||
// This is the main test file from which all tests can be imported top-down,
|
||||
// creating a directed sequence for tests that sums up to our test-suite.
|
||||
//
|
||||
// You propably want to start with low-level code and follow up to higher-level
|
||||
// code, like for example:
|
||||
//
|
||||
// infrastructure
|
||||
// utils / helpers
|
||||
// contexts
|
||||
// api
|
||||
// components
|
||||
// ui
|
||||
|
||||
// If you want to run tests on both, server AND client, simply import them as
|
||||
// they are. However, if you want to restict tests to server-only or client-only
|
||||
// you need to wrap them inside a new describe-block
|
||||
|
||||
if (Meteor.isServer) {
|
||||
describe('server', function() {
|
||||
import '../server/lib/utils.tests';
|
||||
});
|
||||
}
|
||||
|
||||
if (Meteor.isClient) {
|
||||
describe('lib', function() {
|
||||
import '../client/lib/tests';
|
||||
});
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue