Search is not available for this dataset
id stringlengths 1 8 | text stringlengths 72 9.81M | addition_count int64 0 10k | commit_subject stringlengths 0 3.7k | deletion_count int64 0 8.43k | file_extension stringlengths 0 32 | lang stringlengths 1 94 | license stringclasses 10
values | repo_name stringlengths 9 59 |
|---|---|---|---|---|---|---|---|---|
10040550 | <NME> property.js
<BEF> /*
* should.js - assertion library
* Copyright(c) 2010-2013 TJ Holowaychuk <tj@vision-media.ca>
* Copyright(c) 2013-2017 Denis Bardadym <bardadymchik@gmail.com>
* MIT Licensed
*/
import { convertPropertyName } from "../util";
import { hasOwnProperty } from "should-util";
import { formatPro... | 7 | Merge pull request #43 from fediev/master | 3 | .js | js | mit | shouldjs/should.js |
10040551 | <NME> eql.js
<BEF> /*
* should.js - assertion library
* Copyright(c) 2010-2013 TJ Holowaychuk <tj@vision-media.ca>
* Copyright(c) 2013-2017 Denis Bardadym <bardadymchik@gmail.com>
* MIT Licensed
*/
import eql from "should-equal";
import getType from "should-type";
import { formatProp, format } from "../format";
i... | 1 | alias .deepEqual to .eql | 0 | .js | js | mit | shouldjs/should.js |
10040552 | <NME> eql.js
<BEF> /*
* should.js - assertion library
* Copyright(c) 2010-2013 TJ Holowaychuk <tj@vision-media.ca>
* Copyright(c) 2013-2017 Denis Bardadym <bardadymchik@gmail.com>
* MIT Licensed
*/
import eql from "should-equal";
import getType from "should-type";
import { formatProp, format } from "../format";
i... | 1 | alias .deepEqual to .eql | 0 | .js | js | mit | shouldjs/should.js |
10040553 | <NME> util.js
<BEF> function err(fn, msg) {
if (arguments.length > 2) {
msg = Array.prototype.slice.call(arguments, 1).join("\n");
}
fn();
ok = false;
} catch (err) {
assert.equal(msg, err.message);
}
if(!ok) assert.fail('expected an error');
}
(msg instanceof RegExp && !msg.test(err.me... | 1 | Merge branch 'master' of github.com:alsotang/should.js into alsotang-master | 1 | .js | js | mit | shouldjs/should.js |
10040554 | <NME> util.js
<BEF> function err(fn, msg) {
if (arguments.length > 2) {
msg = Array.prototype.slice.call(arguments, 1).join("\n");
}
fn();
ok = false;
} catch (err) {
assert.equal(msg, err.message);
}
if(!ok) assert.fail('expected an error');
}
(msg instanceof RegExp && !msg.test(err.me... | 1 | Merge branch 'master' of github.com:alsotang/should.js into alsotang-master | 1 | .js | js | mit | shouldjs/should.js |
10040555 | <NME> Readme.md
<BEF> # should.js
[](https://gitter.im/shouldjs/should.js)
[](https://travis-ci.org/shouldjs/should.js)
[![Selenium Test Status]... | 1 | Fixed little typo in example | 1 | .md | md | mit | shouldjs/should.js |
10040556 | <NME> Readme.md
<BEF> # should.js
[](https://gitter.im/shouldjs/should.js)
[](https://travis-ci.org/shouldjs/should.js)
[![Selenium Test Status]... | 1 | Fixed little typo in example | 1 | .md | md | mit | shouldjs/should.js |
10040557 | <NME> should.js
<BEF> /*
* should.js - assertion library
* Copyright(c) 2010-2013 TJ Holowaychuk <tj@vision-media.ca>
* Copyright(c) 2013-2017 Denis Bardadym <bardadymchik@gmail.com>
* MIT Licensed
*/
import t from "should-type";
import eq from "should-equal";
import defaultFormat from "should-format";
import { i... | 1 | Remove passed format | 1 | .js | js | mit | shouldjs/should.js |
10040558 | <NME> should.js
<BEF> /*
* should.js - assertion library
* Copyright(c) 2010-2013 TJ Holowaychuk <tj@vision-media.ca>
* Copyright(c) 2013-2017 Denis Bardadym <bardadymchik@gmail.com>
* MIT Licensed
*/
import t from "should-type";
import eq from "should-equal";
import defaultFormat from "should-format";
import { i... | 1 | Remove passed format | 1 | .js | js | mit | shouldjs/should.js |
10040559 | <NME> util.js
<BEF> /*
* should.js - assertion library
* Copyright(c) 2010-2013 TJ Holowaychuk <tj@vision-media.ca>
* Copyright(c) 2013-2017 Denis Bardadym <bardadymchik@gmail.com>
* MIT Licensed
*/
var type = require('should-type');
var config = require('./config');
/**
* Check if given obj just a primitive ty... | 68 | Use modules | 65 | .js | js | mit | shouldjs/should.js |
10040560 | <NME> util.js
<BEF> /*
* should.js - assertion library
* Copyright(c) 2010-2013 TJ Holowaychuk <tj@vision-media.ca>
* Copyright(c) 2013-2017 Denis Bardadym <bardadymchik@gmail.com>
* MIT Licensed
*/
var type = require('should-type');
var config = require('./config');
/**
* Check if given obj just a primitive ty... | 68 | Use modules | 65 | .js | js | mit | shouldjs/should.js |
10040561 | <NME> property.test.js
<BEF> var err = require("../util").err;
describe("property", function() {
it("test property(name)", function() {
"test".should.have.property("length");
(4).should.not.have.property("length");
err(function() {
"asd".should.have.property("foo");
}, "expected 'asd' to have ... | 1 | Merge pull request #169 from yamadapc/master | 0 | .js | test | mit | shouldjs/should.js |
10040562 | <NME> property.test.js
<BEF> var err = require("../util").err;
describe("property", function() {
it("test property(name)", function() {
"test".should.have.property("length");
(4).should.not.have.property("length");
err(function() {
"asd".should.have.property("foo");
}, "expected 'asd' to have ... | 1 | Merge pull request #169 from yamadapc/master | 0 | .js | test | mit | shouldjs/should.js |
10040563 | <NME> promise.js
<BEF> /*
* should.js - assertion library
* Copyright(c) 2010-2013 TJ Holowaychuk <tj@vision-media.ca>
* Copyright(c) 2013-2017 Denis Bardadym <bardadymchik@gmail.com>
* MIT Licensed
*/
import { functionName } from "../util";
import { PromisedAssertion } from "../assertion";
export default functi... | 60 | Update promise.js | 18 | .js | js | mit | shouldjs/should.js |
10040564 | <NME> promise.js
<BEF> /*
* should.js - assertion library
* Copyright(c) 2010-2013 TJ Holowaychuk <tj@vision-media.ca>
* Copyright(c) 2013-2017 Denis Bardadym <bardadymchik@gmail.com>
* MIT Licensed
*/
import { functionName } from "../util";
import { PromisedAssertion } from "../assertion";
export default functi... | 60 | Update promise.js | 18 | .js | js | mit | shouldjs/should.js |
10040565 | <NME> number.test.js
<BEF> var err = require("../util").err;
describe("number", function() {
it("test NaN", function() {
NaN.should.be.NaN();
Infinity.should.not.be.NaN();
(0).should.not.be.NaN();
false.should.not.be.NaN();
({}.should.not.be.NaN());
"".should.not.be.NaN();
"foo".should.no... | 8 | Merge pull request #143 from isayme/issue/aboveOrEqual-belowOrEqual | 0 | .js | test | mit | shouldjs/should.js |
10040566 | <NME> number.test.js
<BEF> var err = require("../util").err;
describe("number", function() {
it("test NaN", function() {
NaN.should.be.NaN();
Infinity.should.not.be.NaN();
(0).should.not.be.NaN();
false.should.not.be.NaN();
({}.should.not.be.NaN());
"".should.not.be.NaN();
"foo".should.no... | 8 | Merge pull request #143 from isayme/issue/aboveOrEqual-belowOrEqual | 0 | .js | test | mit | shouldjs/should.js |
10040567 | <NME> should.test.js
<BEF> /**
* Module dependencies.
*/
var assert = require("assert");
describe("should", function() {
it("test assertion", function() {
"test".should.be.a.String;
should.equal("foo", "foo");
});
it("test .expected and .actual", function() {
try {
"foo".should.equal("bar")... | 13 | More tests | 0 | .js | test | mit | shouldjs/should.js |
10040568 | <NME> should.test.js
<BEF> /**
* Module dependencies.
*/
var assert = require("assert");
describe("should", function() {
it("test assertion", function() {
"test".should.be.a.String;
should.equal("foo", "foo");
});
it("test .expected and .actual", function() {
try {
"foo".should.equal("bar")... | 13 | More tests | 0 | .js | test | mit | shouldjs/should.js |
10040569 | <NME> .travis.yml
<BEF> language: node_js
node_js:
- '0.12'
script:
- test $SAUCE_USERNAME && npm run zuul || echo 'not running on saucelabs'
- npm test
env:
global:
- secure: aB4+vAj+mJHqQfnq9x10eZ5//erfxecs3l9u/oSJX1Ok+WLrpUW0x3qpaC1bEEPq4bkAuIifxohnPv0XTE3m8GyTfRHzqmeNnNQNsnex3IzunbU4aG7QyS3jFa6gjT5OrgPA+eHobNXB... | 1 | Update .travis.yml | 1 | .yml | travis | mit | shouldjs/should.js |
10040570 | <NME> .travis.yml
<BEF> language: node_js
node_js:
- '0.12'
script:
- test $SAUCE_USERNAME && npm run zuul || echo 'not running on saucelabs'
- npm test
env:
global:
- secure: aB4+vAj+mJHqQfnq9x10eZ5//erfxecs3l9u/oSJX1Ok+WLrpUW0x3qpaC1bEEPq4bkAuIifxohnPv0XTE3m8GyTfRHzqmeNnNQNsnex3IzunbU4aG7QyS3jFa6gjT5OrgPA+eHobNXB... | 1 | Update .travis.yml | 1 | .yml | travis | mit | shouldjs/should.js |
10040571 | <NME> util.js
<BEF> /*
* should.js - assertion library
* Copyright(c) 2010-2013 TJ Holowaychuk <tj@vision-media.ca>
* Copyright(c) 2013-2017 Denis Bardadym <bardadymchik@gmail.com>
* MIT Licensed
*/
import sformat from "should-format";
export function isWrapperType(obj) {
return obj instanceof Number || obj ins... | 6 | Added support of community agreement about array-like object checks. | 0 | .js | js | mit | shouldjs/should.js |
10040572 | <NME> util.js
<BEF> /*
* should.js - assertion library
* Copyright(c) 2010-2013 TJ Holowaychuk <tj@vision-media.ca>
* Copyright(c) 2013-2017 Denis Bardadym <bardadymchik@gmail.com>
* MIT Licensed
*/
import sformat from "should-format";
export function isWrapperType(obj) {
return obj instanceof Number || obj ins... | 6 | Added support of community agreement about array-like object checks. | 0 | .js | js | mit | shouldjs/should.js |
10040573 | <NME> should.js
<BEF>
/*!
* Should
* Copyright(c) 2010 TJ Holowaychuk <tj@vision-media.ca>
* Copyright(c) 2013-2017 Denis Bardadym <bardadymchik@gmail.com>
* MIT Licensed
*/
import t from "should-type";
import eq from "should-equal";
import defaultFormat from "should-format";
import { isWrapperType } from "./uti... | 2 | Do not attach `should` to my prototype permanently, thank you. | 2 | .js | js | mit | shouldjs/should.js |
10040574 | <NME> should.js
<BEF>
/*!
* Should
* Copyright(c) 2010 TJ Holowaychuk <tj@vision-media.ca>
* Copyright(c) 2013-2017 Denis Bardadym <bardadymchik@gmail.com>
* MIT Licensed
*/
import t from "should-type";
import eq from "should-equal";
import defaultFormat from "should-format";
import { isWrapperType } from "./uti... | 2 | Do not attach `should` to my prototype permanently, thank you. | 2 | .js | js | mit | shouldjs/should.js |
10040575 | <NME> property.js
<BEF> /*
* should.js - assertion library
* Copyright(c) 2010-2013 TJ Holowaychuk <tj@vision-media.ca>
* Copyright(c) 2013-2017 Denis Bardadym <bardadymchik@gmail.com>
* MIT Licensed
*/
import { convertPropertyName } from "../util";
import { hasOwnProperty } from "should-util";
import { formatPro... | 18 | Fix .size with should as function | 8 | .js | js | mit | shouldjs/should.js |
10040576 | <NME> property.js
<BEF> /*
* should.js - assertion library
* Copyright(c) 2010-2013 TJ Holowaychuk <tj@vision-media.ca>
* Copyright(c) 2013-2017 Denis Bardadym <bardadymchik@gmail.com>
* MIT Licensed
*/
import { convertPropertyName } from "../util";
import { hasOwnProperty } from "should-util";
import { formatPro... | 18 | Fix .size with should as function | 8 | .js | js | mit | shouldjs/should.js |
10040577 | <NME> type.test.js
<BEF> var err = require("../util").err;
var AssertionError = require("assert").AssertionError;
var util = require("util");
describe("type", function() {
it("test arguments", function() {
var args = (function() {
return arguments;
})(1, 2, 3);
args.should.be.arguments();
[].s... | 15 | Add Date type assertion | 0 | .js | test | mit | shouldjs/should.js |
10040578 | <NME> type.test.js
<BEF> var err = require("../util").err;
var AssertionError = require("assert").AssertionError;
var util = require("util");
describe("type", function() {
it("test arguments", function() {
var args = (function() {
return arguments;
})(1, 2, 3);
args.should.be.arguments();
[].s... | 15 | Add Date type assertion | 0 | .js | test | mit | shouldjs/should.js |
10040579 | <NME> Readme.md
<BEF> # should.js
[](https://gitter.im/shouldjs/should.js)
[](https://travis-ci.org/shouldjs/should.js)
[![Selenium Test Status]... | 5 | Update Readme.md | 5 | .md | md | mit | shouldjs/should.js |
10040580 | <NME> Readme.md
<BEF> # should.js
[](https://gitter.im/shouldjs/should.js)
[](https://travis-ci.org/shouldjs/should.js)
[![Selenium Test Status]... | 5 | Update Readme.md | 5 | .md | md | mit | shouldjs/should.js |
10040581 | <NME> should.js <BEF> /** * should - test framework agnostic BDD-style assertions * @version v3.3.0 * @author TJ Holowaychuk <tj@vision-media.ca> * @link https://github.com/visionmedia/should.js * @license MIT */ (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)r... | 65 | Remove all non core extensions | 301 | .js | js | mit | shouldjs/should.js |
10040582 | <NME> should.js <BEF> /** * should - test framework agnostic BDD-style assertions * @version v3.3.0 * @author TJ Holowaychuk <tj@vision-media.ca> * @link https://github.com/visionmedia/should.js * @license MIT */ (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)r... | 65 | Remove all non core extensions | 301 | .js | js | mit | shouldjs/should.js |
10040583 | <NME> eql.test.js
<BEF> var err = require("../util").err;
describe("eql", function() {
it("test eql(val)", function() {
"test".should.eql("test");
({ foo: "bar" }.should.eql({ foo: "bar" }));
(1).should.eql(1);
var memo = [];
function memorize() {
memo.push(arguments);
}
memorize(... | 17 | Add possibility to use old .eql implementation | 2 | .js | test | mit | shouldjs/should.js |
10040584 | <NME> eql.test.js
<BEF> var err = require("../util").err;
describe("eql", function() {
it("test eql(val)", function() {
"test".should.eql("test");
({ foo: "bar" }.should.eql({ foo: "bar" }));
(1).should.eql(1);
var memo = [];
function memorize() {
memo.push(arguments);
}
memorize(... | 17 | Add possibility to use old .eql implementation | 2 | .js | test | mit | shouldjs/should.js |
10040585 | <NME> number.js
<BEF> /*
* should.js - assertion library
* Copyright(c) 2010-2013 TJ Holowaychuk <tj@vision-media.ca>
* Copyright(c) 2013-2017 Denis Bardadym <bardadymchik@gmail.com>
* MIT Licensed
*/
export default function(should, Assertion) {
/**
* Assert given object is NaN
* @name NaN
* @memberOf ... | 1 | Update number.js | 1 | .js | js | mit | shouldjs/should.js |
10040586 | <NME> number.js
<BEF> /*
* should.js - assertion library
* Copyright(c) 2010-2013 TJ Holowaychuk <tj@vision-media.ca>
* Copyright(c) 2013-2017 Denis Bardadym <bardadymchik@gmail.com>
* MIT Licensed
*/
export default function(should, Assertion) {
/**
* Assert given object is NaN
* @name NaN
* @memberOf ... | 1 | Update number.js | 1 | .js | js | mit | shouldjs/should.js |
10040587 | <NME> Readme.md
<BEF> # should.js
[](https://gitter.im/shouldjs/should.js)
[](https://travis-ci.org/shouldjs/should.js)
[![Selenium Test Status]... | 14 | Update *chaining assertions* section | 2 | .md | md | mit | shouldjs/should.js |
10040588 | <NME> Readme.md
<BEF> # should.js
[](https://gitter.im/shouldjs/should.js)
[](https://travis-ci.org/shouldjs/should.js)
[![Selenium Test Status]... | 14 | Update *chaining assertions* section | 2 | .md | md | mit | shouldjs/should.js |
10040589 | <NME> Readme.md
<BEF> # should.js
[](https://gitter.im/shouldjs/should.js)
[](https://travis-ci.org/shouldjs/should.js)
[![Selenium Test Status]... | 1 | Update Readme.md | 1 | .md | md | mit | shouldjs/should.js |
10040590 | <NME> Readme.md
<BEF> # should.js
[](https://gitter.im/shouldjs/should.js)
[](https://travis-ci.org/shouldjs/should.js)
[![Selenium Test Status]... | 1 | Update Readme.md | 1 | .md | md | mit | shouldjs/should.js |
10040591 | <NME> should.test.js
<BEF> /**
* Module dependencies.
*/
var assert = require("assert");
describe("should", function() {
it("test assertion", function() {
"test".should.be.a.String;
should.equal("foo", "foo");
});
it("test .expected and .actual", function() {
try {
"foo".should.equal("bar")... | 25 | Merge pull request #35 from serby/master | 1 | .js | test | mit | shouldjs/should.js |
10040592 | <NME> should.test.js
<BEF> /**
* Module dependencies.
*/
var assert = require("assert");
describe("should", function() {
it("test assertion", function() {
"test".should.be.a.String;
should.equal("foo", "foo");
});
it("test .expected and .actual", function() {
try {
"foo".should.equal("bar")... | 25 | Merge pull request #35 from serby/master | 1 | .js | test | mit | shouldjs/should.js |
10040593 | <NME> should.js <BEF> /*! * should - test framework agnostic BDD-style assertions * @version v8.3.1 * @author TJ Holowaychuk <tj@vision-media.ca>, Denis Bardadym <bardadymchik@gmail.com> and other contributors * @link https://github.com/shouldjs/should.js * @license MIT (function () { 'use strict'; var types = { NUMBER... | 10 | Release 8.3.2 | 13 | .js | js | mit | shouldjs/should.js |
10040594 | <NME> should.js <BEF> /*! * should - test framework agnostic BDD-style assertions * @version v8.3.1 * @author TJ Holowaychuk <tj@vision-media.ca>, Denis Bardadym <bardadymchik@gmail.com> and other contributors * @link https://github.com/shouldjs/should.js * @license MIT (function () { 'use strict'; var types = { NUMBER... | 10 | Release 8.3.2 | 13 | .js | js | mit | shouldjs/should.js |
10040595 | <NME> should.js <BEF> /* * should - test framework agnostic BDD-style assertions * @version v4.5.0 * @author TJ Holowaychuk <tj@vision-media.ca> and contributors * @link https://github.com/shouldjs/should.js * @license MIT */ (function () { 'use strict'; var types = { NUMBER: 'number', UNDEFINED: 'undefined', STRING: '... | 3 | Release 4.5.1 | 3 | .js | js | mit | shouldjs/should.js |
10040596 | <NME> should.js <BEF> /* * should - test framework agnostic BDD-style assertions * @version v4.5.0 * @author TJ Holowaychuk <tj@vision-media.ca> and contributors * @link https://github.com/shouldjs/should.js * @license MIT */ (function () { 'use strict'; var types = { NUMBER: 'number', UNDEFINED: 'undefined', STRING: '... | 3 | Release 4.5.1 | 3 | .js | js | mit | shouldjs/should.js |
10040597 | <NME> Readme.md
<BEF> # should.js
_should_ is an expressive, readable, test framework agnostic, assertion library. Main goals of this library __to be expressive__ and __to be helpful__. It means test code should be clean, and error messages enough helpfull to understand error.
It extends the `Object.prototype` with a... | 43 | Merge pull request #177 from zarino/patch-1 | 43 | .md | md | mit | shouldjs/should.js |
10040598 | <NME> Readme.md
<BEF> # should.js
_should_ is an expressive, readable, test framework agnostic, assertion library. Main goals of this library __to be expressive__ and __to be helpful__. It means test code should be clean, and error messages enough helpfull to understand error.
It extends the `Object.prototype` with a... | 43 | Merge pull request #177 from zarino/patch-1 | 43 | .md | md | mit | shouldjs/should.js |
10040599 | <NME> should.test.js
<BEF> /**
* Module dependencies.
*/
var assert = require("assert");
describe("should", function() {
it("test assertion", function() {
"test".should.be.a.String;
should.equal("foo", "foo");
});
it("test .expected and .actual", function() {
try {
"foo".should.equal("bar")... | 15 | Merge pull request #32 from RubenVerborgh/master | 0 | .js | test | mit | shouldjs/should.js |
10040600 | <NME> should.test.js
<BEF> /**
* Module dependencies.
*/
var assert = require("assert");
describe("should", function() {
it("test assertion", function() {
"test".should.be.a.String;
should.equal("foo", "foo");
});
it("test .expected and .actual", function() {
try {
"foo".should.equal("bar")... | 15 | Merge pull request #32 from RubenVerborgh/master | 0 | .js | test | mit | shouldjs/should.js |
10040601 | <NME> eql.test.js
<BEF> var err = require("../util").err;
describe("eql", function() {
it("test eql(val)", function() {
"test".should.eql("test");
({ foo: "bar" }.should.eql({ foo: "bar" }));
(1).should.eql(1);
var memo = [];
function memorize() {
memo.push(arguments);
}
memorize(... | 3 | Update test to new defaults | 1 | .js | test | mit | shouldjs/should.js |
10040602 | <NME> eql.test.js
<BEF> var err = require("../util").err;
describe("eql", function() {
it("test eql(val)", function() {
"test".should.eql("test");
({ foo: "bar" }.should.eql({ foo: "bar" }));
(1).should.eql(1);
var memo = [];
function memorize() {
memo.push(arguments);
}
memorize(... | 3 | Update test to new defaults | 1 | .js | test | mit | shouldjs/should.js |
10040603 | <NME> .npmrc
<BEF> ADDFILE
<MSG> Disable package-lock.json because i am controlling all dependencies
<DFF> @@ -0,0 +1,1 @@
+package-lock=false
| 1 | Disable package-lock.json because i am controlling all dependencies | 0 | npmrc | mit | shouldjs/should.js | |
10040604 | <NME> .npmrc
<BEF> ADDFILE
<MSG> Disable package-lock.json because i am controlling all dependencies
<DFF> @@ -0,0 +1,1 @@
+package-lock=false
| 1 | Disable package-lock.json because i am controlling all dependencies | 0 | npmrc | mit | shouldjs/should.js | |
10040605 | <NME> should.js <BEF> /*! * should - test framework agnostic BDD-style assertions * @version v13.2.3 * @author TJ Holowaychuk <tj@vision-media.ca>, Denis Bardadym <bardadymchik@gmail.com> * @link https://github.com/shouldjs/should.js * @license MIT */ (function () { 'use strict'; var types = { NUMBER: 'number', UNDEFIN... | 12 | Fixes jQuery checks in environments without DOM | 10 | .js | js | mit | shouldjs/should.js |
10040606 | <NME> should.js <BEF> /*! * should - test framework agnostic BDD-style assertions * @version v13.2.3 * @author TJ Holowaychuk <tj@vision-media.ca>, Denis Bardadym <bardadymchik@gmail.com> * @link https://github.com/shouldjs/should.js * @license MIT */ (function () { 'use strict'; var types = { NUMBER: 'number', UNDEFIN... | 12 | Fixes jQuery checks in environments without DOM | 10 | .js | js | mit | shouldjs/should.js |
10040607 | <NME> should.test.js
<BEF> /**
* Module dependencies.
*/
var assert = require("assert");
describe("should", function() {
it("test assertion", function() {
"test".should.be.a.String;
should.equal("foo", "foo");
});
it("test .expected and .actual", function() {
try {
"foo".should.equal("bar")... | 1 | Merge branch 'master' of github.com:visionmedia/should.js | 1 | .js | test | mit | shouldjs/should.js |
10040608 | <NME> should.test.js
<BEF> /**
* Module dependencies.
*/
var assert = require("assert");
describe("should", function() {
it("test assertion", function() {
"test".should.be.a.String;
should.equal("foo", "foo");
});
it("test .expected and .actual", function() {
try {
"foo".should.equal("bar")... | 1 | Merge branch 'master' of github.com:visionmedia/should.js | 1 | .js | test | mit | shouldjs/should.js |
10040609 | <NME> History.md
<BEF> # 13.2.3 / 2018-07-30
* `.only.keys` throws when no `Object.prototype.should`
# 13.2.2 / 2018-07-26
* Updates for TS definition
# 13.2.1 / 2018-01-12
* Fix `.size` to work with should/as-function
# 13.2.0 / 2017-12-27
* Update type adaptors to allow to use Set as iterable everywhere
# 13.... | 5 | Release 0.0.1 | 0 | .md | md | mit | shouldjs/should.js |
10040610 | <NME> History.md
<BEF> # 13.2.3 / 2018-07-30
* `.only.keys` throws when no `Object.prototype.should`
# 13.2.2 / 2018-07-26
* Updates for TS definition
# 13.2.1 / 2018-01-12
* Fix `.size` to work with should/as-function
# 13.2.0 / 2017-12-27
* Update type adaptors to allow to use Set as iterable everywhere
# 13.... | 5 | Release 0.0.1 | 0 | .md | md | mit | shouldjs/should.js |
10040611 | <NME> CONTRIBUTING.md
<BEF> Before contribute something:
Follow simple rules:
- Not violate [DRY](http://programmer.97things.oreilly.com/wiki/index.php/Don%27t_Repeat_Yourself).
- [Boy Scout Rule](http://programmer.97things.oreilly.com/wiki/index.php/The_Boy_Scout_Rule) needs to have been applied.
1. Your code shoul... | 1 | Changed unnecessarily gendered word | 1 | .md | md | mit | shouldjs/should.js |
10040612 | <NME> CONTRIBUTING.md
<BEF> Before contribute something:
Follow simple rules:
- Not violate [DRY](http://programmer.97things.oreilly.com/wiki/index.php/Don%27t_Repeat_Yourself).
- [Boy Scout Rule](http://programmer.97things.oreilly.com/wiki/index.php/The_Boy_Scout_Rule) needs to have been applied.
1. Your code shoul... | 1 | Changed unnecessarily gendered word | 1 | .md | md | mit | shouldjs/should.js |
10040613 | <NME> should.test.js
<BEF> /**
* Module dependencies.
*/
var assert = require("assert");
describe("should", function() {
it("test assertion", function() {
"test".should.be.a.String;
should.equal("foo", "foo");
});
it("test .expected and .actual", function() {
try {
"foo".should.equal("bar")... | 10 | Added eql() | 0 | .js | test | mit | shouldjs/should.js |
10040614 | <NME> should.test.js
<BEF> /**
* Module dependencies.
*/
var assert = require("assert");
describe("should", function() {
it("test assertion", function() {
"test".should.be.a.String;
should.equal("foo", "foo");
});
it("test .expected and .actual", function() {
try {
"foo".should.equal("bar")... | 10 | Added eql() | 0 | .js | test | mit | shouldjs/should.js |
10040615 | <NME> Readme.md
<BEF> # should.js
[](https://gitter.im/shouldjs/should.js)
[](https://travis-ci.org/shouldjs/should.js)
[![Selenium Test Status]... | 20 | Merge pull request #39 from serby/master | 3 | .md | md | mit | shouldjs/should.js |
10040616 | <NME> Readme.md
<BEF> # should.js
[](https://gitter.im/shouldjs/should.js)
[](https://travis-ci.org/shouldjs/should.js)
[![Selenium Test Status]... | 20 | Merge pull request #39 from serby/master | 3 | .md | md | mit | shouldjs/should.js |
10040617 | <NME> Readme.md
<BEF> # should.js
[](https://gitter.im/shouldjs/should.js)
[](https://travis-ci.org/shouldjs/should.js)
[![Selenium Test Status]... | 6 | docs for .status(code) | 0 | .md | md | mit | shouldjs/should.js |
10040618 | <NME> Readme.md
<BEF> # should.js
[](https://gitter.im/shouldjs/should.js)
[](https://travis-ci.org/shouldjs/should.js)
[![Selenium Test Status]... | 6 | docs for .status(code) | 0 | .md | md | mit | shouldjs/should.js |
10040619 | <NME> should.test.js
<BEF> /**
* Module dependencies.
*/
var assert = require("assert");
describe("should", function() {
it("test assertion", function() {
"test".should.be.a.String;
should.equal("foo", "foo");
});
it("test .expected and .actual", function() {
try {
"foo".should.equal("bar")... | 2 | Reorganize format and inspect, to avoid edge cases with util.inspect. | 2 | .js | test | mit | shouldjs/should.js |
10040620 | <NME> should.test.js
<BEF> /**
* Module dependencies.
*/
var assert = require("assert");
describe("should", function() {
it("test assertion", function() {
"test".should.be.a.String;
should.equal("foo", "foo");
});
it("test .expected and .actual", function() {
try {
"foo".should.equal("bar")... | 2 | Reorganize format and inspect, to avoid edge cases with util.inspect. | 2 | .js | test | mit | shouldjs/should.js |
10040621 | <NME> Readme.md
<BEF> # should.js
[](https://gitter.im/shouldjs/should.js)
It extends the Object prototype with a single non-enumerable getter that allows you to express how that object should behave.
_should_ literally... | 18 | Hide mentions of assert module from Readme, but do not remove it. As we have static version now we can replace it usage in future. | 47 | .md | md | mit | shouldjs/should.js |
10040622 | <NME> Readme.md
<BEF> # should.js
[](https://gitter.im/shouldjs/should.js)
It extends the Object prototype with a single non-enumerable getter that allows you to express how that object should behave.
_should_ literally... | 18 | Hide mentions of assert module from Readme, but do not remove it. As we have static version now we can replace it usage in future. | 47 | .md | md | mit | shouldjs/should.js |
10040623 | <NME> property.test.js
<BEF> var err = require("../util").err;
describe("property", function() {
it("test enumerable(name)", function() {
({ length: 5 }.should.have.enumerable("length"));
(4).should.not.have.enumerable("length");
err(
function() {
"asd".should.have.enumerable("length");
... | 0 | Fix https://github.com/shouldjs/should.js/issues/150 | 33 | .js | test | mit | shouldjs/should.js |
10040624 | <NME> property.test.js
<BEF> var err = require("../util").err;
describe("property", function() {
it("test enumerable(name)", function() {
({ length: 5 }.should.have.enumerable("length"));
(4).should.not.have.enumerable("length");
err(
function() {
"asd".should.have.enumerable("length");
... | 0 | Fix https://github.com/shouldjs/should.js/issues/150 | 33 | .js | test | mit | shouldjs/should.js |
10040625 | <NME> property.js
<BEF> /*
* should.js - assertion library
* Copyright(c) 2010-2013 TJ Holowaychuk <tj@vision-media.ca>
* Copyright(c) 2013-2017 Denis Bardadym <bardadymchik@gmail.com>
* MIT Licensed
*/
import { convertPropertyName } from "../util";
import { hasOwnProperty } from "should-util";
import { formatPro... | 7 | Merge branch 'master' of github.com:shouldjs/should.js | 3 | .js | js | mit | shouldjs/should.js |
10040626 | <NME> property.js
<BEF> /*
* should.js - assertion library
* Copyright(c) 2010-2013 TJ Holowaychuk <tj@vision-media.ca>
* Copyright(c) 2013-2017 Denis Bardadym <bardadymchik@gmail.com>
* MIT Licensed
*/
import { convertPropertyName } from "../util";
import { hasOwnProperty } from "should-util";
import { formatPro... | 7 | Merge branch 'master' of github.com:shouldjs/should.js | 3 | .js | js | mit | shouldjs/should.js |
10040627 | <NME> Readme.md
<BEF> # should.js
[](https://gitter.im/shouldjs/should.js)
[](https://travis-ci.org/shouldjs/should.js)
[![Selenium Test Status]... | 3 | Update Readme.md | 6 | .md | md | mit | shouldjs/should.js |
10040628 | <NME> Readme.md
<BEF> # should.js
[](https://gitter.im/shouldjs/should.js)
[](https://travis-ci.org/shouldjs/should.js)
[![Selenium Test Status]... | 3 | Update Readme.md | 6 | .md | md | mit | shouldjs/should.js |
10040629 | <NME> util.js
<BEF> function err(fn, msg) {
if (arguments.length > 2) {
msg = Array.prototype.slice.call(arguments, 1).join("\n");
}
fn();
ok = false;
} catch (err) {
if(err.message !== msg) {
throw new should.AssertionError({
message: 'Expected message does not match',
expe... | 6 | Attempt to make error tests working in non v8 browsers. | 2 | .js | js | mit | shouldjs/should.js |
10040630 | <NME> util.js
<BEF> function err(fn, msg) {
if (arguments.length > 2) {
msg = Array.prototype.slice.call(arguments, 1).join("\n");
}
fn();
ok = false;
} catch (err) {
if(err.message !== msg) {
throw new should.AssertionError({
message: 'Expected message does not match',
expe... | 6 | Attempt to make error tests working in non v8 browsers. | 2 | .js | js | mit | shouldjs/should.js |
10040631 | <NME> should.test.js
<BEF> /**
* Module dependencies.
*/
var assert = require("assert");
describe("should", function() {
it("test assertion", function() {
"test".should.be.a.String;
should.equal("foo", "foo");
});
it("test .expected and .actual", function() {
try {
"foo".should.equal("bar")... | 0 | Release 1.1.1 | 4 | .js | test | mit | shouldjs/should.js |
10040632 | <NME> should.test.js
<BEF> /**
* Module dependencies.
*/
var assert = require("assert");
describe("should", function() {
it("test assertion", function() {
"test".should.be.a.String;
should.equal("foo", "foo");
});
it("test .expected and .actual", function() {
try {
"foo".should.equal("bar")... | 0 | Release 1.1.1 | 4 | .js | test | mit | shouldjs/should.js |
10040633 | <NME> Readme.md
<BEF> # should.js
[](https://gitter.im/shouldjs/should.js)
[](https://travis-ci.org/shouldjs/should.js)
[![Selenium Test Status]... | 1 | Update Readme.md | 0 | .md | md | mit | shouldjs/should.js |
10040634 | <NME> Readme.md
<BEF> # should.js
[](https://gitter.im/shouldjs/should.js)
[](https://travis-ci.org/shouldjs/should.js)
[![Selenium Test Status]... | 1 | Update Readme.md | 0 | .md | md | mit | shouldjs/should.js |
10040635 | <NME> should.js <BEF> /*! * should - test framework agnostic BDD-style assertions * @version v13.2.3 * @author TJ Holowaychuk <tj@vision-media.ca>, Denis Bardadym <bardadymchik@gmail.com> * @link https://github.com/shouldjs/should.js * @license MIT */ (function () { 'use strict'; var types = { NUMBER: 'number', UNDEFIN... | 2 | Merge pull request #115 from sergii-tkachenko/fix-typo-truthy-should-be-truthy | 2 | .js | js | mit | shouldjs/should.js |
10040636 | <NME> should.js <BEF> /*! * should - test framework agnostic BDD-style assertions * @version v13.2.3 * @author TJ Holowaychuk <tj@vision-media.ca>, Denis Bardadym <bardadymchik@gmail.com> * @link https://github.com/shouldjs/should.js * @license MIT */ (function () { 'use strict'; var types = { NUMBER: 'number', UNDEFIN... | 2 | Merge pull request #115 from sergii-tkachenko/fix-typo-truthy-should-be-truthy | 2 | .js | js | mit | shouldjs/should.js |
10040637 | <NME> Readme.md
<BEF> # should.js
[](https://gitter.im/shouldjs/should.js)
[](https://travis-ci.org/shouldjs/should.js)
[![Selenium Test Status]... | 1 | Merge pull request #66 from garrows/fix/testing | 1 | .md | md | mit | shouldjs/should.js |
10040638 | <NME> Readme.md
<BEF> # should.js
[](https://gitter.im/shouldjs/should.js)
[](https://travis-ci.org/shouldjs/should.js)
[![Selenium Test Status]... | 1 | Merge pull request #66 from garrows/fix/testing | 1 | .md | md | mit | shouldjs/should.js |
10040639 | <NME> match.js
<BEF> /*
* should.js - assertion library
* Copyright(c) 2010-2013 TJ Holowaychuk <tj@vision-media.ca>
* Copyright(c) 2013-2017 Denis Bardadym <bardadymchik@gmail.com>
* MIT Licensed
*/
import { formatProp } from "../format";
import { some, forEach } from "should-type-adaptors";
import eql from "sho... | 57 | Add matchAny assertion | 1 | .js | js | mit | shouldjs/should.js |
10040640 | <NME> match.js
<BEF> /*
* should.js - assertion library
* Copyright(c) 2010-2013 TJ Holowaychuk <tj@vision-media.ca>
* Copyright(c) 2013-2017 Denis Bardadym <bardadymchik@gmail.com>
* MIT Licensed
*/
import { formatProp } from "../format";
import { some, forEach } from "should-type-adaptors";
import eql from "sho... | 57 | Add matchAny assertion | 1 | .js | js | mit | shouldjs/should.js |
10040641 | <NME> util.js
<BEF> /*
* Should
* Copyright(c) 2010-2014 TJ Holowaychuk <tj@vision-media.ca>
* MIT Licensed
*/
import sformat from "should-format";
export function isWrapperType(obj) {
return obj instanceof Number || obj instanceof String || obj instanceof Boolean;
}
// XXX make it more strict: numbers, string... | 1 | Update headers | 1 | .js | js | mit | shouldjs/should.js |
10040642 | <NME> util.js
<BEF> /*
* Should
* Copyright(c) 2010-2014 TJ Holowaychuk <tj@vision-media.ca>
* MIT Licensed
*/
import sformat from "should-format";
export function isWrapperType(obj) {
return obj instanceof Number || obj instanceof String || obj instanceof Boolean;
}
// XXX make it more strict: numbers, string... | 1 | Update headers | 1 | .js | js | mit | shouldjs/should.js |
10040643 | <NME> should.js <BEF> /*! * should - test framework agnostic BDD-style assertions * @version v8.0.1 * @author TJ Holowaychuk <tj@vision-media.ca> and contributors * @link https://github.com/shouldjs/should.js * @license MIT */ (function () { 'use strict'; var types = { NUMBER: 'number', UNDEFINED: 'undefined', STRING: ... | 700 | Release 8.0.2 | 677 | .js | js | mit | shouldjs/should.js |
10040644 | <NME> should.js <BEF> /*! * should - test framework agnostic BDD-style assertions * @version v8.0.1 * @author TJ Holowaychuk <tj@vision-media.ca> and contributors * @link https://github.com/shouldjs/should.js * @license MIT */ (function () { 'use strict'; var types = { NUMBER: 'number', UNDEFINED: 'undefined', STRING: ... | 700 | Release 8.0.2 | 677 | .js | js | mit | shouldjs/should.js |
10040645 | <NME> Readme.md
<BEF> # should.js
[](https://gitter.im/shouldjs/should.js)
[](https://travis-ci.org/shouldjs/should.js)
[![Selenium Test Status]... | 1 | Merge branch 'master' of github.com:shouldjs/should.js | 1 | .md | md | mit | shouldjs/should.js |
10040646 | <NME> Readme.md
<BEF> # should.js
[](https://gitter.im/shouldjs/should.js)
[](https://travis-ci.org/shouldjs/should.js)
[![Selenium Test Status]... | 1 | Merge branch 'master' of github.com:shouldjs/should.js | 1 | .md | md | mit | shouldjs/should.js |
10040647 | <NME> not.test.js
<BEF> ADDFILE
<MSG> Add a bit hacky error to throw instead of full powered AssertionError
<DFF> @@ -0,0 +1,28 @@
+var should = require('../');
+var err = require('./util').err;
+
+
+var a = 10;
+var b = 11;
+
+describe('.not', function() {
+ it('should not throw when true', function() {
+ a.shoul... | 28 | Add a bit hacky error to throw instead of full powered AssertionError | 0 | .js | test | mit | shouldjs/should.js |
10040648 | <NME> not.test.js
<BEF> ADDFILE
<MSG> Add a bit hacky error to throw instead of full powered AssertionError
<DFF> @@ -0,0 +1,28 @@
+var should = require('../');
+var err = require('./util').err;
+
+
+var a = 10;
+var b = 11;
+
+describe('.not', function() {
+ it('should not throw when true', function() {
+ a.shoul... | 28 | Add a bit hacky error to throw instead of full powered AssertionError | 0 | .js | test | mit | shouldjs/should.js |
10040649 | <NME> should.test.js
<BEF> /**
* Module dependencies.
*/
var assert = require("assert");
describe("should", function() {
it("test assertion", function() {
"test".should.be.a.String;
should.equal("foo", "foo");
});
it("test .expected and .actual", function() {
try {
"foo".should.equal("bar")... | 5 | Merge branch 'master' of github.com:visionmedia/should.js | 724 | .js | test | mit | shouldjs/should.js |