Download frontend/node_modules/array-includes/test/index.js from VinayRevanuru/Medical_Chat_App: direct link, hf CLI and curl.
- Browser
- Download file 442 Bytes
-
https://huggingface.co/VinayRevanuru/Medical_Chat_App/resolve/main/frontend/node_modules/array-includes/test/index.js
- Command line
-
hf download hf://VinayRevanuru/Medical_Chat_App/frontend/node_modules/array-includes/test/index.js
-
curl -L -o index.js https://huggingface.co/VinayRevanuru/Medical_Chat_App/resolve/main/frontend/node_modules/array-includes/test/index.js
442 Bytes
| ; | |
| var includes = require('../'); | |
| var test = require('tape'); | |
| var runTests = require('./tests'); | |
| test('as a function', function (t) { | |
| t.test('bad array/this value', function (st) { | |
| st['throws'](function () { includes(undefined, 'a'); }, TypeError, 'undefined is not an object'); | |
| st['throws'](function () { includes(null, 'a'); }, TypeError, 'null is not an object'); | |
| st.end(); | |
| }); | |
| runTests(includes, t); | |
| t.end(); | |
| }); | |