mirror of
https://github.com/wassname/talk.git
synced 2026-07-11 03:02:55 +08:00
Adding mock test
This commit is contained in:
+5
-2
@@ -6,7 +6,8 @@
|
||||
"scripts": {
|
||||
"start": "./bin/www",
|
||||
"lint": "eslint .",
|
||||
"test": "mocha"
|
||||
"pretest": "npm install",
|
||||
"test": "mocha tests"
|
||||
},
|
||||
"config": {
|
||||
"pre-git": {
|
||||
@@ -14,7 +15,9 @@
|
||||
"pre-commit": [
|
||||
"npm run lint"
|
||||
],
|
||||
"pre-push": [],
|
||||
"pre-push": [
|
||||
"npm test"
|
||||
],
|
||||
"post-commit": [],
|
||||
"post-merge": []
|
||||
}
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
/* eslint-env node, mocha */
|
||||
'use strict';
|
||||
|
||||
const expect = require('chai').expect;
|
||||
|
||||
describe('Comment', () => {
|
||||
describe.only('#add', () => {
|
||||
it('should add a comment', () => {
|
||||
expect(0).to.be.equal(0);
|
||||
});
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user