Debian Codegraph @

debian/tests/run-test

raw
1 #!/bin/sh
2 set -e
3 DIR=$(mktemp -d)
4 trap "rm -rf $DIR" EXIT
5 cp debian/tests/expected-methods.mjs "$DIR"
6 cd "$DIR"
7 pkgjs-ln form-data
8 pkgjs-ln follow-redirects
9 pkgjs-ln proxy-from-env
10 pkgjs-ln axios
11 node expected-methods.mjs
12
13 node -e '
14 const assert = require("assert");
15 const axios = require("axios");
16 assert.strictEqual(typeof axios, "function", "CJS: axios should be a function");
17 assert.strictEqual(typeof axios.get, "function", "CJS: axios.get should be a function");
18 assert.ok(axios.defaults, "CJS: axios.defaults should exist");
19 console.log("CJS test passed");
20 '