New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

leocornus-nodejs-sandbox

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

leocornus-nodejs-sandbox - npm Package Compare versions

Comparing version 0.0.5 to 0.0.6

docs/how-organized.rst

11

package.json
{
"name": "leocornus-nodejs-sandbox",
"version": "0.0.5",
"version": "0.0.6",
"description": "Sandbox to learn Node.js",

@@ -14,3 +14,4 @@ "main": "index.js",

"karma-jasmine": "node node_modules/karma/bin/karma start test/karma.conf.jasmine.js",
"karma-mocha": "node node_modules/karma/bin/karma start test/karma.conf.mocha.js"
"karma-mocha": "node node_modules/karma/bin/karma start test/karma.conf.mocha.js",
"gulp": "gulp"
},

@@ -34,2 +35,5 @@ "repository": {

"chai": "^2.3.0",
"gulp": "^3.9.0",
"gulp-mocha": "^2.1.1",
"gulp-util": "^3.0.5",
"jasmine": "^2.2.1",

@@ -44,4 +48,5 @@ "jasmine-core": "^2.3.0",

"mocha": "^2.2.4",
"vows": "^0.8.1"
"vows": "^0.8.1",
"yahoo-finance-stream": "^0.1.2"
}
}
// JavaScript testing using mocha.
// load the chai assertion lib.
chai.should();
describe('JavaScript run on browser', function() {
describe('testing array method indexOf()', function() {
describe('testing array', function() {
var numberArray = [1,2,3];
it('array index starts from 0', function() {
it('length: we have an array with 3 numbers.', function() {
numberArray.length.should.equal(3);
});
it('indexOf(): array index starts from 0', function() {
numberArray.indexOf(1).should.equal(0);

@@ -14,7 +19,13 @@ numberArray.indexOf(2).should.equal(1);

it('return -1 if the value is not present', function() {
it('[0]: will return the first number', function() {
numberArray[0].should.equal(1);
numberArray[2].should.equal(3);
});
it('indexOf(): return -1 if the value is not present',
function() {
numberArray.indexOf(0).should.equal(-1);
numberArray.indexOf(4).should.equal(-1);
});
})
});
})

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc