Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f9930d0

Browse files
committed
Added basic tests container for each library file.
1 parent 36c5c98 commit f9930d0

File tree

10 files changed

+102
-0
lines changed

10 files changed

+102
-0
lines changed

tests/bios.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
var Bios = require("../built/bios.js").Bios;
2+
3+
describe("Bios", function () {
4+
var bios = null;
5+
6+
beforeEach(function() {
7+
bios = new Bios();
8+
});
9+
});

tests/brain.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
var Brain = require("../built/brain.js").Brain;
2+
3+
describe("Brain", function () {
4+
var brain = null;
5+
6+
beforeEach(function() {
7+
brain = new Brain();
8+
});
9+
});

tests/cerebrum.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
var Cerebrum = require("../built/cerebrum.js").Cerebrum;
2+
3+
describe("Cerebrum", function () {
4+
var cerebrum = null;
5+
6+
beforeEach(function() {
7+
cerebrum = new Cerebrum();
8+
});
9+
});

tests/dn2a.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
var DN2A = require("../built/dn2a.js").DN2A;
2+
3+
describe("DN2A", function () {
4+
var dn2a = null;
5+
6+
beforeEach(function() {
7+
dn2a = new DN2A();
8+
});
9+
});

tests/host.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
var Host = require("../built/host.js").Host;
2+
3+
describe("Host", function () {
4+
var host = null;
5+
6+
beforeEach(function() {
7+
host = new Host();
8+
});
9+
});

tests/link.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
var Link = require("../built/link.js").Link;
2+
3+
describe("Link", function () {
4+
var link = null;
5+
6+
beforeEach(function() {
7+
link = new Link();
8+
});
9+
});

tests/networks/alpha.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
var NetworkAlpha = require("../../built/networks/alpha.js").NetworkAlpha;
2+
3+
describe("NetworkAlpha", function () {
4+
var networkAlpha = null;
5+
6+
beforeEach(function() {
7+
networkAlpha = new NetworkAlpha();
8+
});
9+
});

tests/neuron.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
var Neuron = require("../built/neuron.js").Neuron;
2+
3+
describe("Neuron", function () {
4+
var neuronGenerator = null;
5+
var neuron = null;
6+
7+
beforeEach(function() {
8+
neuronGenerator = Neuron();
9+
neuron = new neuronGenerator();
10+
});
11+
12+
it("should have a configuration object", function () {
13+
expect(neuron.configuration).toBeObject();
14+
});
15+
});

tests/node.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
var Node = require("../built/node.js").Node;
2+
3+
describe("Node", function () {
4+
var node = null;
5+
6+
beforeEach(function() {
7+
node = new Node();
8+
});
9+
});

tests/synapse.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
var Synapse = require("../built/synapse.js").Synapse;
2+
3+
describe("Synapse", function () {
4+
var synapseGenerator = null;
5+
var synapse = null;
6+
7+
beforeEach(function() {
8+
synapseGenerator = Synapse();
9+
synapse = new synapseGenerator();
10+
});
11+
12+
it("should have a configuration object", function () {
13+
expect(synapse.configuration).toBeObject();
14+
});
15+
});

0 commit comments

Comments
 (0)