2016-07-02 08:32:02 +00:00
|
|
|
/* global describe, it */
|
|
|
|
const chai = require('chai')
|
|
|
|
const expect = chai.expect
|
2016-04-26 02:22:32 +00:00
|
|
|
|
2016-08-07 11:51:17 +00:00
|
|
|
Metamaps = {}
|
2016-07-31 18:51:06 +00:00
|
|
|
require('../../app/assets/javascripts/src/Metamaps.Import')
|
2016-04-26 02:22:32 +00:00
|
|
|
|
2016-07-02 08:32:02 +00:00
|
|
|
describe('Metamaps.Import.js', function () {
|
|
|
|
it('has a topic whitelist', function () {
|
2016-04-26 02:22:32 +00:00
|
|
|
expect(Metamaps.Import.topicWhitelist).to.deep.equal(
|
|
|
|
['id', 'name', 'metacode', 'x', 'y', 'description', 'link', 'permission']
|
|
|
|
)
|
|
|
|
})
|
|
|
|
})
|