Skip to content

Commit 23d3e7d

Browse files
committed
test: failing unit test for #1510
1 parent fc79281 commit 23d3e7d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/__tests__/ParseFile-test.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,12 @@ describe('ParseFile', () => {
6666
expect(file._source.type).toBe('');
6767
});
6868

69+
it('can create files with base64 encoding (no padding)', () => {
70+
const file = new ParseFile('parse.txt', { base64: 'SGVsbG8gV29ybGQh' });
71+
expect(file._source.base64).toBe('SGVsbG8gV29ybGQh');
72+
expect(file._source.type).toBe('');
73+
});
74+
6975
it('can set the default type to be text/plain when using base64', () => {
7076
const file = new ParseFile('parse.txt', {
7177
base64: 'data:;base64,ParseA==',

0 commit comments

Comments
 (0)