sequelize sqlite

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2021-04-20 01:00:00 +00:00
parent 461aa04b8b
commit 64e8add2b8
7 changed files with 1287 additions and 11 deletions

View File

@@ -0,0 +1,47 @@
var assert = require('assert');
describe('describe0', function() {
// Only runs before the current describe.
before(async () => {
console.error('before describe 0');
});
beforeEach(async () => {
console.error('beforeEach describe 0');
});
it('it 0 0', function() {
assert.equal(0, 0);
});
it('it 0 1', function() {
assert.equal(0, 0);
});
describe('describe 0 0', function() {
before(async () => {
console.error('before describe 0 0');
});
beforeEach(async () => {
console.error('beforeEach describe 0 0');
});
it('it 0 0 0', function() {
assert.equal(0, 0);
});
it('it 0 0 1', function() {
assert.equal(0, 0);
});
});
describe('describe 0 1', function() {
before(async () => {
console.error('before describe 0 1');
});
beforeEach(async () => {
console.error('beforeEach describe 0 1');
});
it('it 0 1 0', function() {
assert.equal(0, 0);
});
it('it 0 1 1', function() {
assert.equal(0, 0);
});
});
});

View File

@@ -0,0 +1,23 @@
// Global fixture.
exports.mochaGlobalSetup = async function() {
console.log('mochaGlobalSetup');
};
// Root hook.
exports.mochaHooks = {
before(done) {
console.log('mochaHooks.before');
done();
},
beforeEach(done) {
console.log('mochaHooks.beforeEach');
done();
},
};
// TODO don't know a better way to make this available
// to test files than just requiring it by relative path.
function myhelper() {
console.error('myhelper');
}
exports.myhelper = myhelper;