metamaps--metamaps/app/assets/javascripts/test/Metamaps.Import.spec.js
Devin Howard 27942546b8 fix 2 bugs on develop (#565)
* fix js bug

* if mappable is nil it causes an error
2016-07-02 16:32:02 +08:00

15 lines
379 B
JavaScript

/* global describe, it */
const chai = require('chai')
const expect = chai.expect
const Metamaps = {}
require('../src/Metamaps.Import')
describe('Metamaps.Import.js', function () {
it('has a topic whitelist', function () {
expect(Metamaps.Import.topicWhitelist).to.deep.equal(
['id', 'name', 'metacode', 'x', 'y', 'description', 'link', 'permission']
)
})
})