Skip to content

Commit 574a5e8

Browse files
author
Prashant Shubham
committed
Fix failing browser tests
1 parent 44a3088 commit 574a5e8

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
master:
22
date: 2020-10-05
33
chores:
4-
- Added integration test for large file upload
4+
- GH-1094 Added integration test for large file upload
55

66
7.26.6:
77
date: 2020-09-16

test/integration/file-uploads/request-body.test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ var fs = require('fs'),
55
IS_LINUX = process.platform === 'linux',
66
IS_DARWIN = process.platform === 'darwin',
77
IS_WIN32 = process.platform === 'win32',
8-
sh = require('shelljs');
8+
// don't import shelljs if tests are running within browser
9+
sh = IS_BROWSER ? null : require('shelljs');
910

1011
describe('file upload in request body', function () {
1112
var testrun;

0 commit comments

Comments
 (0)