mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-25 10:01:30 -04:00
8 lines
224 B
JavaScript
8 lines
224 B
JavaScript
const request = require('./lib/node');
|
|
|
|
request.post('nevermind')
|
|
.field({a:1,b:2})
|
|
.attach('c', 'does-not-exist.txt')
|
|
.then(() => assert.fail("It should not allow this"))
|
|
.catch(() => true);
|