metamaps--metamaps/frontend/test/Metamaps/Import.spec.js
Devin Howard edce66c44d new react tests with enzyme library (#1116)
* move ImportDialogBox into a folder

* install enzyme

* start testing InfoAndHelp component

* add star logic to tests

* switch ImportDialogBox to using enzyme but tests are still failing

* make `npm run test` work

* tests pass again

* eslint

* try to fix travis by adding react-addons-test-utils again

* eslintrc for test dir

* remove duplicated code

* fix

* try to suppress 2 warnings
2017-05-13 13:50:52 -04:00

14 lines
339 B
JavaScript

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