Commit 7c696d9d authored by Piotr Gawron's avatar Piotr Gawron
Browse files

we are using chai asserts

parent 93abb5a6
......@@ -7,7 +7,8 @@ var Admin = require('../../main/js/Admin');
var ServerConnector = require('./ServerConnector-mock');
var logger = require('./logger');
var assert = require('assert');
var chai = require('chai');
var assert = chai.assert;
describe('Admin', function () {
describe('constructor', function () {
......
......@@ -5,7 +5,8 @@ var Export = require('../../main/js/Export');
var ServerConnector = require('./ServerConnector-mock');
var logger = require('./logger');
var assert = require('assert');
var chai = require('chai');
var assert = chai.assert;
describe('Export', function () {
......
......@@ -8,7 +8,8 @@ var Promise = require("bluebird");
var functions = require('../../main/js/Functions');
var logger = require('./logger');
var assert = require('assert');
var chai = require('chai');
var assert = chai.assert;
var originalNavigator = null;
describe('functions', function () {
......
......@@ -9,7 +9,8 @@ var SecurityError = require('../../../../main/js/SecurityError');
var ServerConnector = require('../../ServerConnector-mock');
var logger = require('../../logger');
var assert = require('assert');
var chai = require('chai');
var assert = chai.assert;
/**
*
......
......@@ -9,7 +9,8 @@ var MiriamType = require('../../../../main/js/map/data/MiriamType');
var ServerConnector = require('../../ServerConnector-mock');
var logger = require('../../logger');
var assert = require('assert');
var chai = require('chai');
var assert = chai.assert;
describe('ElementExportPanel', function () {
......
......@@ -6,7 +6,8 @@ var GraphicsExportPanel = require('../../../../main/js/gui/export/GraphicsExport
var ServerConnector = require('../../ServerConnector-mock');
var logger = require('../../logger');
var assert = require('assert');
var chai = require('chai');
var assert = chai.assert;
describe('GraphicsExportPanel', function() {
......
"use strict";
var GeneVariant = require('../../../../main/js/map/data/GeneVariant');
var assert = require('assert');
var chai = require('chai');
var assert = chai.assert;
describe('GeneVariant', function () {
it("constructor", function () {
......
......@@ -3,7 +3,8 @@
require("../../mocha-config.js");
var LayoutAlias = require('../../../../main/js/map/data/LayoutAlias');
var assert = require('assert');
var chai = require('chai');
var assert = chai.assert;
var logger = require('../../logger');
......
......@@ -2,7 +2,8 @@
var LayoutReaction = require('../../../../main/js/map/data/LayoutReaction');
var assert = require('assert');
var chai = require('chai');
var assert = chai.assert;
var logger = require('../../logger');
......
"use strict";
var Mesh = require('../../../../main/js/map/data/Mesh');
var assert = require('assert');
var chai = require('chai');
var assert = chai.assert;
describe('Mesh', function () {
describe("constructor", function () {
......
......@@ -5,7 +5,8 @@ require("../../mocha-config");
var Point = require('../../../../main/js/map/canvas/Point');
var PointData = require('../../../../main/js/map/data/PointData');
var IdentifiedElement = require('../../../../main/js/map/data/IdentifiedElement');
var assert = require('assert');
var chai = require('chai');
var assert = chai.assert;
describe('PointData', function() {
describe("constructor", function() {
......
......@@ -4,7 +4,8 @@ require("../../mocha-config.js");
var Reaction = require('../../../../main/js/map/data/Reaction');
var KineticLaw = require('../../../../main/js/map/data/KineticLaw');
var assert = require('assert');
var chai = require('chai');
var assert = chai.assert;
var logger = require('../../logger');
......
"use strict";
var ReferenceGenome = require('../../../../main/js/map/data/ReferenceGenome');
var assert = require('assert');
var chai = require('chai');
var assert = chai.assert;
describe('ReferenceGenome', function () {
describe("constructor", function () {
......
"use strict";
var ReferenceGenomeGeneMapping = require('../../../../main/js/map/data/ReferenceGenomeGeneMapping');
var assert = require('assert');
var chai = require('chai');
var assert = chai.assert;
describe('ReferenceGenomeGeneMapping', function () {
it("constructor", function () {
......
......@@ -8,7 +8,8 @@ var logger = require('../../logger');
var AliasMarker = require('../../../../main/js/map/marker/AliasMarker');
var IdentifiedElement = require('../../../../main/js/map/data/IdentifiedElement');
var assert = require('assert');
var chai = require('chai');
var assert = chai.assert;
describe('AliasMarker', function () {
......
......@@ -4,7 +4,8 @@ require("../../mocha-config");
var AbstractDbOverlay = require('../../../../main/js/map/overlay/AbstractDbOverlay');
var assert = require('assert');
var chai = require('chai');
var assert = chai.assert;
var logger = require('../../logger');
describe('AbstractDbOverlay', function () {
......
......@@ -9,7 +9,8 @@ var IdentifiedElement = require('../../../../main/js/map/data/IdentifiedElement'
var ChemicalDbOverlay = require('../../../../main/js/map/overlay/ChemicalDbOverlay');
var ServerConnector = require('../../ServerConnector-mock');
var assert = require('assert');
var chai = require('chai');
var assert = chai.assert;
describe('ChemicalDbOverlay', function() {
......
......@@ -6,7 +6,8 @@ require("../../mocha-config");
var CommentDbOverlay = require('../../../../main/js/map/overlay/CommentDbOverlay');
var IdentifiedElement = require('../../../../main/js/map/data/IdentifiedElement');
var assert = require('assert');
var chai = require('chai');
var assert = chai.assert;
describe('CommentDbOverlay', function () {
......
......@@ -5,7 +5,8 @@ require("../../mocha-config");
var DbOverlayCollection = require('../../../../main/js/map/overlay/DbOverlayCollection');
var assert = require('assert');
var chai = require('chai');
var assert = chai.assert;
describe('DbOverlayCollection', function () {
it("constructor", function () {
......
......@@ -7,7 +7,8 @@ var IdentifiedElement = require('../../../../main/js/map/data/IdentifiedElement'
var MiRnaDbOverlay = require('../../../../main/js/map/overlay/MiRnaDbOverlay');
var ServerConnector = require('../../ServerConnector-mock');
var assert = require('assert');
var chai = require('chai');
var assert = chai.assert;
describe('MiRnaDbOverlay', function() {
it("constructor 1", function() {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment