Skip to content
Snippets Groups Projects
Commit 41d91005 authored by Karishma Chadha's avatar Karishma Chadha
Browse files

Update unit test that was checking that .sb files don't get project titles extracted.

parent 6b2cf976
No related branches found
No related tags found
No related merge requests found
......@@ -65,14 +65,14 @@ describe('SBFileUploader Container', () => {
expect(projectName).toBe('my project is great');
});
test('sets blank title with .sb filename', () => {
test('correctly sets title with .sb filename', () => {
const wrapper = shallowWithIntl(getContainer(), {context: {store}});
const instance = wrapper
.dive() // unwrap redux Connect(InjectIntl(SBFileUploader))
.dive() // unwrap InjectIntl(SBFileUploader)
.instance(); // SBFileUploader
const projectName = instance.getProjectTitleFromFilename('my project is great.sb');
expect(projectName).toBe('');
expect(projectName).toBe('my project is great');
});
test('sets blank title with filename with no extension', () => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment