Skip to content

Commit

Permalink
Merge pull request cgi-js#15 from cgi-js/main
Browse files Browse the repository at this point in the history
[COMMIT] [Pull] Adding a pull request for main branch commits
  • Loading branch information
ganeshkbhat authored Sep 23, 2022
2 parents 0f302b5 + f7d560c commit 54e79e9
Show file tree
Hide file tree
Showing 3 changed files with 96 additions and 1 deletion.
12 changes: 12 additions & 0 deletions mocha.test.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
module.exports = {
spec: [
'./test/*.test.js',
'./test/**/*.test.js',
'./test/**/**/*.test.js',
'./test/**/**/**/*.test.js',
'./test/test.*.js',
'./test/**/test.*.js',
'./test/**/**/test.*.js',
'./test/**/**/**/test.*.js',
],
};
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@
"demo-recursive": "node ./demo/demo-app/demo-recursive.js",
"demo-process": "node ./demo/demo-app/demo-processes.js",
"demo-all": "node ./demo/demo-app/demo-all.js",
"test": "mocha --reporter spec --recursive --config ./mocha.test.config.js",
"test:files": "node ./node_modules/mocha/bin/mocha --exit './test/src/file/**/*.test.js'",
"test:process": "node ./node_modules/mocha/bin/mocha --exit './test/src/file/**/*.test.js'",
"test:proxy": "node ./node_modules/mocha/bin/mocha --exit './test/src/file/**/*.test.js'",
"test:remote": "node ./node_modules/mocha/bin/mocha --exit './test/src/file/**/*.test.js'",
"test:utils": "node ./node_modules/mocha/bin/mocha --exit './test/src/file/**/*.test.js'",
"test": "node ./node_modules/mocha/bin/mocha --exit './test/src/**/**/*.test.js'",
"build:cgijs": "",
"publish:cgijs": ""
},
Expand Down
83 changes: 83 additions & 0 deletions test/src/test.template.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@

var expect = require('chai').expect;

describe('test.template.js::cgijs: Test Suite for - ', function() {

describe ('test.template.js::cgijs: [Test A] Test Suite for ', function() {
// it('[Test A] package.json Present', function(done){
// expect(200).to.equal(200);
// done();
// });

it('[Test A] ', function(done) {
expect(100).to.equal(100);
done();
});

});

describe ('test.template.js::cgijs: [Test B] Test Suite for ', function() {
// it('[Test B] status', function(done){
// expect(200).to.equal(200);
// done();
// });

it('[Test B] ', function(done) {
expect(100).to.equal(100);
done();
});

});

describe ('test.template.js::cgijs: [Test C] Test Suite for ', function() {
// it('[Test C] status', function(done){
// expect(200).to.equal(200);
// done();
// });

it('[Test C] ', function(done) {
expect(100).to.equal(100);
done();
});

});

describe ('test.template.js::cgijs: [Test D] Test Suite for ', function() {
// it('[Test D] status', function(done){
// expect(200).to.equal(200);
// done();
// });

it('[Test D] ', function(done) {
expect(100).to.equal(100);
done();
});

});

describe ('test.template.js::cgijs: [Test E] Test Suite Negatives for ', function() {
// it('[Test E] status', function(done){
// expect(200).to.equal(200);
// done();
// });

it('[Test E] ', function(done) {
expect(100).to.equal(100);
done();
});

});

describe ('test.template.js::cgijs: [Test F] Test Suite Negatives for ', function() {
// it('[Test F] status', function(done){
// expect(200).to.equal(200);
// done();
// });

it('[Test F] ', function(done) {
expect(100).to.equal(100);
done();
});

});
});

0 comments on commit 54e79e9

Please sign in to comment.