Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
dougwilson committed Dec 17, 2021
1 parent 4dc3b14 commit 1b650bb
Showing 3 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -23,11 +23,11 @@ jobs:
include:
- name: Node.js 0.10
node-version: "0.10"
npm-i: [email protected] [email protected]
npm-i: [email protected] [email protected] [email protected]

- name: Node.js 0.12
node-version: "0.12"
npm-i: [email protected] [email protected]
npm-i: [email protected] [email protected] [email protected]

- name: Node.js 4.x
node-version: "4.9"
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -30,7 +30,7 @@
"pend": "1.2.0",
"require-all": "3.0.0",
"rimraf": "2.6.3",
"superagent": "2.3.0"
"superagent": "3.8.3"
},
"files": [
"HISTORY.md",
14 changes: 7 additions & 7 deletions test/test.js
Original file line number Diff line number Diff line change
@@ -840,7 +840,7 @@ var standaloneTests = [
req.field('b', val);
req.field('c', val);
req.on('error', function(err) {
assert.ifError(err);
assert.strictEqual(err.message, 'Payload Too Large')
});
req.end();
req.on('response', function(res) {
@@ -925,7 +925,7 @@ var standaloneTests = [
req.attach('file0', fixture('pf1y5.png'), 'SOG1.JPG');
req.attach('file1', fixture('pf1y5.png'), 'SOG2.JPG');
req.on('error', function(err) {
assert.ifError(err);
assert.strictEqual(err.message, 'Payload Too Large')
});
req.end();
req.on('response', function(res) {
@@ -977,7 +977,7 @@ var standaloneTests = [
req.attach('file0', fixture('pf1y5.png'), 'SOG1.JPG');
req.attach('file1', fixture('pf1y5.png'), 'SOG1.JPG');
req.on('error', function(err) {
assert.ifError(err);
assert.strictEqual(err.message, 'Payload Too Large')
});
req.end();
req.on('response', function(res) {
@@ -1059,7 +1059,7 @@ var standaloneTests = [
var url = 'http://localhost:' + server.address().port + '/upload';
var req = superagent.post(url);
req.on('error', function(err) {
assert.ifError(err);
assert.strictEqual(err.message, 'Unsupported Media Type')
});
req.end();
req.on('response', function(res) {
@@ -1092,7 +1092,7 @@ var standaloneTests = [
req.set('Content-Type', 'application/json');
req.write('{}');
req.on('error', function(err) {
assert.ifError(err);
assert.strictEqual(err.message, 'Unsupported Media Type')
});
req.end();
req.on('response', function(res) {
@@ -1124,7 +1124,7 @@ var standaloneTests = [
var req = superagent.post(url);
req.attach('file0', fixture('pf1y5.png'), 'SOG1.JPG');
req.on('error', function(err) {
assert.ifError(err);
assert.strictEqual(err.message, 'Bad Request')
});
req.end();
req.req.setHeader('Content-Type', 'multipart/form-data')
@@ -1210,7 +1210,7 @@ var standaloneTests = [
var req = superagent.post(url);
req.attach('file0', fixture('pf1y5.png'), 'SOG1.JPG');
req.on('error', function(err) {
assert.ifError(err);
assert.strictEqual(err.message, 'Internal Server Error')
});
req.end();
req.on('response', function(res) {

0 comments on commit 1b650bb

Please sign in to comment.