Download pool/shard011/JavaScript/0068991_example.js from Variable-role/sajaniemi_variable_dataset_large: direct link, hf CLI and curl.
- Browser
- Download file 851 Bytes
-
https://huggingface.co/datasets/Variable-role/sajaniemi_variable_dataset_large/resolve/main/pool/shard011/JavaScript/0068991_example.js
- Command line
-
hf download hf://datasets/Variable-role/sajaniemi_variable_dataset_large/pool/shard011/JavaScript/0068991_example.js
-
curl -L -o 0068991_example.js https://huggingface.co/datasets/Variable-role/sajaniemi_variable_dataset_large/resolve/main/pool/shard011/JavaScript/0068991_example.js
851 Bytes
| ; | |
| var assert = require('assert'); | |
| var BulkMongoDb = require('./'); | |
| describe('notifications', function() { | |
| var bulkMongoDb; | |
| before(function(done){ | |
| var notifications = require('./fixtures/notifications'); | |
| var users = require('./fixtures/users'); | |
| var url = 'mongodb://127.0.0.1:27017/bulkMongoDbtest'; | |
| var data = [ | |
| { collection : 'notifications', documents : notifications }, | |
| { collection : 'users', documents : users } | |
| ]; | |
| bulkMongoDb = new BulkMongoDb(url, data); | |
| bulkMongoDb.insert(function() { | |
| done(); | |
| }); | |
| }); | |
| after(function(done) { | |
| bulkMongoDb.drop(function(){ | |
| done(); | |
| }); | |
| }); | |
| describe('when doing something which needs mongodb', function() { | |
| it('should return a valid response', function(){ | |
| assert(true); | |
| }); | |
| }); | |
| }); | |