diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2017-01-17 08:26:59 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2017-01-17 08:26:59 +0900 |
| commit | f76d55b1d2cbfa36bcf92c2bb2ac98c86505522a (patch) | |
| tree | ef8d468e3dc86d59db946c105be6d6b5d2a0d3b9 /test | |
| parent | #31 (diff) | |
| download | misskey-f76d55b1d2cbfa36bcf92c2bb2ac98c86505522a.tar.gz misskey-f76d55b1d2cbfa36bcf92c2bb2ac98c86505522a.tar.bz2 misskey-f76d55b1d2cbfa36bcf92c2bb2ac98c86505522a.zip | |
[WIP] test
Diffstat (limited to 'test')
| -rw-r--r-- | test/api.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/api.js b/test/api.js new file mode 100644 index 0000000000..ac33dd9ce6 --- /dev/null +++ b/test/api.js @@ -0,0 +1,13 @@ +/** + * API TESTS + */ + +// During the test the env variable is set to test +process.env.NODE_ENV = 'test'; + +const chai = require('chai'); +const chaiHttp = require('chai-http'); +const server = require('../built/server'); +const should = chai.should(); + +chai.use(chaiHttp); |