fix js bug
This commit is contained in:
parent
872ae90832
commit
d1792d4fd7
2 changed files with 7 additions and 8 deletions
|
@ -320,5 +320,3 @@ Metamaps.Import = {
|
||||||
Metamaps.Synapse.renderSynapse(mapping, synapse, node1, node2, true)
|
Metamaps.Synapse.renderSynapse(mapping, synapse, node1, node2, true)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = Metamaps.Import
|
|
||||||
|
|
|
@ -1,11 +1,12 @@
|
||||||
var chai = require('chai')
|
/* global describe, it */
|
||||||
var expect = chai.expect
|
const chai = require('chai')
|
||||||
|
const expect = chai.expect
|
||||||
|
|
||||||
Metamaps = {}
|
const Metamaps = {}
|
||||||
Metamaps.Import = require('../src/Metamaps.Import')
|
require('../src/Metamaps.Import')
|
||||||
|
|
||||||
describe('Metamaps.Import.js', function() {
|
describe('Metamaps.Import.js', function () {
|
||||||
it('has a topic whitelist', function() {
|
it('has a topic whitelist', function () {
|
||||||
expect(Metamaps.Import.topicWhitelist).to.deep.equal(
|
expect(Metamaps.Import.topicWhitelist).to.deep.equal(
|
||||||
['id', 'name', 'metacode', 'x', 'y', 'description', 'link', 'permission']
|
['id', 'name', 'metacode', 'x', 'y', 'description', 'link', 'permission']
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Reference in a new issue