diff --git a/client/coral-framework/components/__tests__/markdown.spec.js b/client/coral-framework/components/__tests__/Markdown.spec.js similarity index 81% rename from client/coral-framework/components/__tests__/markdown.spec.js rename to client/coral-framework/components/__tests__/Markdown.spec.js index 1d98dabae..ab2c1afd1 100644 --- a/client/coral-framework/components/__tests__/markdown.spec.js +++ b/client/coral-framework/components/__tests__/Markdown.spec.js @@ -1,6 +1,5 @@ import React from 'react'; import {shallow} from 'enzyme'; -import {expect} from 'chai'; import Markdown from '../Markdown'; const render = (props) => shallow(); @@ -9,12 +8,12 @@ describe('Markdown', () => { it('should convert Markdown to html', () => { const wrapper = render({content: '*test*'}); const html = wrapper.html(); - expect(html).to.contain(''); + expect(html).toMatch(''); }); it('should set target="_parent" for links', () => { const wrapper = render({content: '[link](https://coralproject.net)'}); const html = wrapper.html(); - expect(html).to.contain('target="_parent"'); + expect(html).toMatch('target="_parent"'); }); }); diff --git a/client/talk-plugin-infobox/__tests__/infoBox.spec.js b/client/talk-plugin-infobox/__tests__/InfoBox.spec.js similarity index 100% rename from client/talk-plugin-infobox/__tests__/infoBox.spec.js rename to client/talk-plugin-infobox/__tests__/InfoBox.spec.js diff --git a/client/talk-plugin-infobox/__tests__/__snapshots__/InfoBox.spec.js.snap b/client/talk-plugin-infobox/__tests__/__snapshots__/InfoBox.spec.js.snap new file mode 100644 index 000000000..4c90404bd --- /dev/null +++ b/client/talk-plugin-infobox/__tests__/__snapshots__/InfoBox.spec.js.snap @@ -0,0 +1,16 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`InfoBox renders correctly 1`] = ` +
+
test

+", + } + } + /> +
+`;