Skip to content

Commit 41d9100

Browse files
committed
Update unit test that was checking that .sb files don't get project titles extracted.
1 parent 6b2cf97 commit 41d9100

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/unit/containers/sb-file-uploader.test.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,14 +65,14 @@ describe('SBFileUploader Container', () => {
6565
expect(projectName).toBe('my project is great');
6666
});
6767

68-
test('sets blank title with .sb filename', () => {
68+
test('correctly sets title with .sb filename', () => {
6969
const wrapper = shallowWithIntl(getContainer(), {context: {store}});
7070
const instance = wrapper
7171
.dive() // unwrap redux Connect(InjectIntl(SBFileUploader))
7272
.dive() // unwrap InjectIntl(SBFileUploader)
7373
.instance(); // SBFileUploader
7474
const projectName = instance.getProjectTitleFromFilename('my project is great.sb');
75-
expect(projectName).toBe('');
75+
expect(projectName).toBe('my project is great');
7676
});
7777

7878
test('sets blank title with filename with no extension', () => {

0 commit comments

Comments
 (0)