diff options
| author | 8cy <[email protected]> | 2020-04-03 02:48:28 -0700 |
|---|---|---|
| committer | 8cy <[email protected]> | 2020-04-03 02:48:28 -0700 |
| commit | f9159ea2d994e14180fb02ab562f0119513e67cf (patch) | |
| tree | 09d14cdf05456567156738b681379d4bccd64e5c /node_modules/snekfetch/test/node/main.js | |
| parent | 2020/04/03, 02:42, V1.2.1 (diff) | |
| download | s5nical-f9159ea2d994e14180fb02ab562f0119513e67cf.tar.xz s5nical-f9159ea2d994e14180fb02ab562f0119513e67cf.zip | |
2020/04/03, 02:47, V1.2.2
Diffstat (limited to 'node_modules/snekfetch/test/node/main.js')
| -rw-r--r-- | node_modules/snekfetch/test/node/main.js | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/node_modules/snekfetch/test/node/main.js b/node_modules/snekfetch/test/node/main.js deleted file mode 100644 index b811ec9..0000000 --- a/node_modules/snekfetch/test/node/main.js +++ /dev/null @@ -1,26 +0,0 @@ -const fs = require('fs'); - -const { Snekfetch, TestRoot } = require('../interop'); - -require('../main'); - -test('node/pipe get', (done) => { - Snekfetch.get(`${TestRoot}/get`) - .pipe(fs.createWriteStream('/dev/null')) - .on('finish', done); -}); - - -test('node/FormData json works', () => - Snekfetch.post(`${TestRoot}/post`) - .attach('object', { a: 1 }) - .then((res) => { - const { form } = res.body; - expect(form.object).toBe('{"a":1}'); - }) -); - -test('node/rawsend post', () => - Snekfetch.post(`${TestRoot}/post`) - .send(Buffer.from('memes')).end() -); |