From 41d910057b5c0526e83842aef6f980e14c24b5db Mon Sep 17 00:00:00 2001 From: Karishma Chadha <kchadha@media.mit.edu> Date: Wed, 26 Dec 2018 09:22:51 -0500 Subject: [PATCH] Update unit test that was checking that .sb files don't get project titles extracted. --- test/unit/containers/sb-file-uploader.test.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/unit/containers/sb-file-uploader.test.jsx b/test/unit/containers/sb-file-uploader.test.jsx index 856b8f058..083dbfa2d 100644 --- a/test/unit/containers/sb-file-uploader.test.jsx +++ b/test/unit/containers/sb-file-uploader.test.jsx @@ -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', () => { -- GitLab