Download pool/shard006/JavaScript/0037717_index.js from Variable-role/sajaniemi_variable_dataset_large: direct link, hf CLI and curl.
- Browser
- Download file 539 Bytes
-
https://huggingface.co/datasets/Variable-role/sajaniemi_variable_dataset_large/resolve/main/pool/shard006/JavaScript/0037717_index.js
- Command line
-
hf download hf://datasets/Variable-role/sajaniemi_variable_dataset_large/pool/shard006/JavaScript/0037717_index.js
-
curl -L -o 0037717_index.js https://huggingface.co/datasets/Variable-role/sajaniemi_variable_dataset_large/resolve/main/pool/shard006/JavaScript/0037717_index.js
539 Bytes
| const Lab = require('@hapi/lab') | |
| const Code = require('@hapi/code') | |
| const server = require('../api.js') | |
| const lab = exports.lab = Lab.script() | |
| lab.experiment('Index Tests', function () { | |
| // tests | |
| lab.test('GET /', function (done) { | |
| var options = { | |
| method: 'GET', | |
| url: '/' | |
| } | |
| // server.inject lets you similate an http request | |
| server.inject(options, function (response) { | |
| Code.expect(response.statusCode).to.equal(200) // Expect http response status code to be 200 ("Ok") | |
| done() | |
| }) | |
| }) | |
| }) | |