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 |
|---|---|---|---|---|---|---|---|---|
10040750 | <NME> chain.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) {
/**
* Simple chaining to improve readability. Does nothing.
*... | 2 | Merge pull request #126 from vp2177/master | 1 | .js | js | mit | shouldjs/should.js |
10040751 | <NME> util.js
<BEF> ADDFILE
<MSG> First attempt to split library on smaller peaces
<DFF> @@ -0,0 +1,14 @@
+var assert = require('assert');
+
+function err(fn, msg) {
+ var ok = true;
+ try {
+ fn();
+ ok = false;
+ } catch (err) {
+ assert.equal(msg, err.message);
+ }
+ if(!ok) assert.fail('expected an e... | 14 | First attempt to split library on smaller peaces | 0 | .js | js | mit | shouldjs/should.js |
10040752 | <NME> util.js
<BEF> ADDFILE
<MSG> First attempt to split library on smaller peaces
<DFF> @@ -0,0 +1,14 @@
+var assert = require('assert');
+
+function err(fn, msg) {
+ var ok = true;
+ try {
+ fn();
+ ok = false;
+ } catch (err) {
+ assert.equal(msg, err.message);
+ }
+ if(!ok) assert.fail('expected an e... | 14 | First attempt to split library on smaller peaces | 0 | .js | js | mit | shouldjs/should.js |
10040753 | <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")... | 21 | add .startWith (close #119) | 0 | .js | test | mit | shouldjs/should.js |
10040754 | <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")... | 21 | add .startWith (close #119) | 0 | .js | test | mit | shouldjs/should.js |
10040755 | <NME> .zuul.yml
<BEF> ui: mocha-bdd
browsers:
- name: chrome
version: 49..latest
- name: ie
version: 9..latest
- name: firefox
version: 44..latest
- name: safari
version: 6..latest
<MSG> Remove very old browsers from testing list
<DFF> @@ -1,10 +1,12 @@
ui: mocha-bdd
browsers:
- name: chro... | 6 | Remove very old browsers from testing list | 4 | .yml | zuul | mit | shouldjs/should.js |
10040756 | <NME> .zuul.yml
<BEF> ui: mocha-bdd
browsers:
- name: chrome
version: 49..latest
- name: ie
version: 9..latest
- name: firefox
version: 44..latest
- name: safari
version: 6..latest
<MSG> Remove very old browsers from testing list
<DFF> @@ -1,10 +1,12 @@
ui: mocha-bdd
browsers:
- name: chro... | 6 | Remove very old browsers from testing list | 4 | .yml | zuul | mit | shouldjs/should.js |
10040757 | <NME> contain.test.js
<BEF> var err = require("../util").err;
describe("contain*", function() {
it("test containEql", function() {
"hello boy".should.containEql("boy");
[1, 2, 3].should.containEql(3);
[[1], [2], [3]].should.containEql([3]);
[[1], [2], [3, 4]].should.not.containEql([3]);
[{ a: "a"... | 3 | Fix strange/unexpected behaviour of .containDeep. It now check on contain once | 0 | .js | test | mit | shouldjs/should.js |
10040758 | <NME> contain.test.js
<BEF> var err = require("../util").err;
describe("contain*", function() {
it("test containEql", function() {
"hello boy".should.containEql("boy");
[1, 2, 3].should.containEql(3);
[[1], [2], [3]].should.containEql([3]);
[[1], [2], [3, 4]].should.not.containEql([3]);
[{ a: "a"... | 3 | Fix strange/unexpected behaviour of .containDeep. It now check on contain once | 0 | .js | test | mit | shouldjs/should.js |
10040759 | <NME> History.md
<BEF> 8.4.0 / 2016-05-21
==================
# 13.2.0 / 2017-12-27
* Update type adaptors to allow to use Set as iterable everywhere
# 13.1.3 / 2017-10-28
* Fix weird bug in `.containDeep` when given object is string (see \#157)
# 13.1.2 / 2017-10-10
* Revert default export in TS definition (adde... | 8 | Update History.md | 0 | .md | md | mit | shouldjs/should.js |
10040760 | <NME> History.md
<BEF> 8.4.0 / 2016-05-21
==================
# 13.2.0 / 2017-12-27
* Update type adaptors to allow to use Set as iterable everywhere
# 13.1.3 / 2017-10-28
* Fix weird bug in `.containDeep` when given object is string (see \#157)
# 13.1.2 / 2017-10-10
* Revert default export in TS definition (adde... | 8 | Update History.md | 0 | .md | md | mit | shouldjs/should.js |
10040761 | <NME> should.js <BEF> /** * should - test framework agnostic BDD-style assertions * @version v4.2.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: ... | 9 | Release 4.2.1 | 12 | .js | js | mit | shouldjs/should.js |
10040762 | <NME> should.js <BEF> /** * should - test framework agnostic BDD-style assertions * @version v4.2.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: ... | 9 | Release 4.2.1 | 12 | .js | js | mit | shouldjs/should.js |
10040763 | <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... | 38 | Release 2.1.1 | 36 | .js | js | mit | shouldjs/should.js |
10040764 | <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... | 38 | Release 2.1.1 | 36 | .js | js | mit | shouldjs/should.js |
10040765 | <NME> perf.test.js
<BEF> ADDFILE
<MSG> When nested errors happen, do not generate message
<DFF> @@ -0,0 +1,18 @@
+var should = require('../');
+
+it('should optimize not.equal for complex objects', function() {
+ function mockComplexObject(prefix, depth, width) {
+ if (depth <= 0) {
+ return 'value-' + prefix... | 18 | When nested errors happen, do not generate message | 0 | .js | test | mit | shouldjs/should.js |
10040766 | <NME> perf.test.js
<BEF> ADDFILE
<MSG> When nested errors happen, do not generate message
<DFF> @@ -0,0 +1,18 @@
+var should = require('../');
+
+it('should optimize not.equal for complex objects', function() {
+ function mockComplexObject(prefix, depth, width) {
+ if (depth <= 0) {
+ return 'value-' + prefix... | 18 | When nested errors happen, do not generate message | 0 | .js | test | mit | shouldjs/should.js |
10040767 | <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... | 5 | Use util.inspect where needed | 3 | .js | js | mit | shouldjs/should.js |
10040768 | <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... | 5 | Use util.inspect where needed | 3 | .js | js | mit | shouldjs/should.js |
10040769 | <NME> should.js <BEF> /** * should - test framework agnostic BDD-style assertions * @version v4.3.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.3.1 | 1 | .js | js | mit | shouldjs/should.js |
10040770 | <NME> should.js <BEF> /** * should - test framework agnostic BDD-style assertions * @version v4.3.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.3.1 | 1 | .js | js | mit | shouldjs/should.js |
10040771 | <NME> Readme.md
<BEF> # should.js
[](https://travis-ci.org/shouldjs/should.js)
[](https://saucelabs.com/u/shouldjs)
_should_ is an expressive, readable, framework-agnos... | 2 | Merge pull request #49 from gitter-badger/gitter-badge | 0 | .md | md | mit | shouldjs/should.js |
10040772 | <NME> Readme.md
<BEF> # should.js
[](https://travis-ci.org/shouldjs/should.js)
[](https://saucelabs.com/u/shouldjs)
_should_ is an expressive, readable, framework-agnos... | 2 | Merge pull request #49 from gitter-badger/gitter-badge | 0 | .md | md | mit | shouldjs/should.js |
10040773 | <NME> rollup.config.js
<BEF> /*eslint-env node */
"use strict";
const nodeResolve = require("rollup-plugin-node-resolve");
const pkg = require("./package.json");
const banner = `/*!
* ${pkg.name} - ${pkg.description}
* @version v${pkg.version}
* @author ${pkg.author}
* @link ${pkg.homepage}
* @license ${pkg.lic... | 5 | Fix to get window correctly in iife. | 17 | .js | config | mit | shouldjs/should.js |
10040774 | <NME> rollup.config.js
<BEF> /*eslint-env node */
"use strict";
const nodeResolve = require("rollup-plugin-node-resolve");
const pkg = require("./package.json");
const banner = `/*!
* ${pkg.name} - ${pkg.description}
* @version v${pkg.version}
* @author ${pkg.author}
* @link ${pkg.homepage}
* @license ${pkg.lic... | 5 | Fix to get window correctly in iife. | 17 | .js | config | mit | shouldjs/should.js |
10040775 | <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
*/
exports.isWrapperType = function(obj) {
return obj instanceof Number || obj instanceof String || obj instanceof ... | 25 | Make should a function and expose it to world. Assert module merged to it. Closes #43. | 1 | .js | js | mit | shouldjs/should.js |
10040776 | <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
*/
exports.isWrapperType = function(obj) {
return obj instanceof Number || obj instanceof String || obj instanceof ... | 25 | Make should a function and expose it to world. Assert module merged to it. Closes #43. | 1 | .js | js | mit | shouldjs/should.js |
10040777 | <NME> Readme.md
<BEF> # should.js
[](https://gitter.im/shouldjs/should.js)
[](https://travis-ci.org/shouldjs/should.js)
[![Selenium Test Status]... | 2 | Merge pull request #178 from alexeld/master | 2 | .md | md | mit | shouldjs/should.js |
10040778 | <NME> Readme.md
<BEF> # should.js
[](https://gitter.im/shouldjs/should.js)
[](https://travis-ci.org/shouldjs/should.js)
[![Selenium Test Status]... | 2 | Merge pull request #178 from alexeld/master | 2 | .md | md | mit | shouldjs/should.js |
10040779 | <NME> should.js <BEF> /*! * should - test framework agnostic BDD-style assertions * @version v13.2.1 * @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... | 235 | Release 13.2.2 | 235 | .js | js | mit | shouldjs/should.js |
10040780 | <NME> should.js <BEF> /*! * should - test framework agnostic BDD-style assertions * @version v13.2.1 * @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... | 235 | Release 13.2.2 | 235 | .js | js | mit | shouldjs/should.js |
10040781 | <NME> should.js <BEF> /*! * should - test framework agnostic BDD-style assertions * @version v12.0.0 * @author TJ Holowaychuk <tj@vision-media.ca>, Denis Bardadym <bardadymchik@gmail.com> * @link https://github.com/shouldjs/should.js * @license MIT */ (function (root) { 'use strict'; var types = { NUMBER: 'number', UND... | 4,031 | Fix build and restore old files. In a bit silly way, but it works. | 4,009 | .js | js | mit | shouldjs/should.js |
10040782 | <NME> should.js <BEF> /*! * should - test framework agnostic BDD-style assertions * @version v12.0.0 * @author TJ Holowaychuk <tj@vision-media.ca>, Denis Bardadym <bardadymchik@gmail.com> * @link https://github.com/shouldjs/should.js * @license MIT */ (function (root) { 'use strict'; var types = { NUMBER: 'number', UND... | 4,031 | Fix build and restore old files. In a bit silly way, but it works. | 4,009 | .js | js | mit | shouldjs/should.js |
10040783 | <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 ... | 4 | Add .only modifier for .keys | 0 | .js | test | mit | shouldjs/should.js |
10040784 | <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 ... | 4 | Add .only modifier for .keys | 0 | .js | test | mit | shouldjs/should.js |
10040785 | <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")... | 14 | Add tests and docs for undocumented method approximately. Also make it has more obvious description. | 0 | .js | test | mit | shouldjs/should.js |
10040786 | <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")... | 14 | Add tests and docs for undocumented method approximately. Also make it has more obvious description. | 0 | .js | test | mit | shouldjs/should.js |
10040787 | <NME> should.js <BEF> /** * should - test framework agnostic BDD-style assertions * @version v4.0.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: ... | 1 | Release 4.0.1 | 1 | .js | js | mit | shouldjs/should.js |
10040788 | <NME> should.js <BEF> /** * should - test framework agnostic BDD-style assertions * @version v4.0.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: ... | 1 | Release 4.0.1 | 1 | .js | js | mit | shouldjs/should.js |
10040789 | <NME> should.test.js
<BEF> /**
* Module dependencies.
* Module dependencies.
*/
var should = require('should')
, assert = require('assert');
function err(fn, msg) {
try {
fn();
assert.fail('expected an error');
} catch (err) {
assert.equal(msg, err.message);
}
}
module.exports = {
'test .ver... | 4 | Release 0.0.3 | 5 | .js | test | mit | shouldjs/should.js |
10040790 | <NME> should.test.js
<BEF> /**
* Module dependencies.
* Module dependencies.
*/
var should = require('should')
, assert = require('assert');
function err(fn, msg) {
try {
fn();
assert.fail('expected an error');
} catch (err) {
assert.equal(msg, err.message);
}
}
module.exports = {
'test .ver... | 4 | Release 0.0.3 | 5 | .js | test | mit | shouldjs/should.js |
10040791 | <NME> .gitignore
<BEF> node_modules
.DS_Store
desktop.ini
.idea
*.swp
npm-debug.log
cjs/
es6/
package-lock.json
/as-function.js
<MSG> Use a .gitignore'd build for testing
<DFF> @@ -2,3 +2,4 @@ node_modules
.DS_Store
desktop.ini
.idea
+should.js.for-tests
\ No newline at end of file
| 1 | Use a .gitignore'd build for testing | 0 | gitignore | mit | shouldjs/should.js | |
10040792 | <NME> .gitignore
<BEF> node_modules
.DS_Store
desktop.ini
.idea
*.swp
npm-debug.log
cjs/
es6/
package-lock.json
/as-function.js
<MSG> Use a .gitignore'd build for testing
<DFF> @@ -2,3 +2,4 @@ node_modules
.DS_Store
desktop.ini
.idea
+should.js.for-tests
\ No newline at end of file
| 1 | Use a .gitignore'd build for testing | 0 | gitignore | mit | shouldjs/should.js | |
10040793 | <NME> should.js
<BEF>
/*!
* Should
* Copyright(c) 2010-2012 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 "... | 2 | Merge pull request #83 from guileen/patch-1 | 3 | .js | js | mit | shouldjs/should.js |
10040794 | <NME> should.js
<BEF>
/*!
* Should
* Copyright(c) 2010-2012 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 "... | 2 | Merge pull request #83 from guileen/patch-1 | 3 | .js | js | mit | shouldjs/should.js |
10040795 | <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 ... | 13 | Make .containDeep more strict to avoid potential misunderstanding. | 10 | .js | test | mit | shouldjs/should.js |
10040796 | <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 ... | 13 | Make .containDeep more strict to avoid potential misunderstanding. | 10 | .js | test | mit | shouldjs/should.js |
10040797 | <NME> Readme.md
<BEF> # should.js
[](https://gitter.im/shouldjs/should.js)
[](https://travis-ci.org/shouldjs/should.js)
[![Selenium Test Status]... | 9 | Merge branch 'master' of github.com:shouldjs/should.js | 1 | .md | md | mit | shouldjs/should.js |
10040798 | <NME> Readme.md
<BEF> # should.js
[](https://gitter.im/shouldjs/should.js)
[](https://travis-ci.org/shouldjs/should.js)
[![Selenium Test Status]... | 9 | Merge branch 'master' of github.com:shouldjs/should.js | 1 | .md | md | mit | shouldjs/should.js |
10040799 | <NME> should.js <BEF> /*! * should - test framework agnostic BDD-style assertions * @version v8.2.2 * @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 = { NUM... | 152 | Release 8.3.0 | 144 | .js | js | mit | shouldjs/should.js |
10040800 | <NME> should.js <BEF> /*! * should - test framework agnostic BDD-style assertions * @version v8.2.2 * @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 = { NUM... | 152 | Release 8.3.0 | 144 | .js | js | mit | shouldjs/should.js |
10040801 | <NME> should.js <BEF> /** * should - test framework agnostic BDD-style assertions * @version v4.2.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: ... | 182 | Release 4.3.0 | 249 | .js | js | mit | shouldjs/should.js |
10040802 | <NME> should.js <BEF> /** * should - test framework agnostic BDD-style assertions * @version v4.2.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: ... | 182 | Release 4.3.0 | 249 | .js | js | mit | shouldjs/should.js |
10040803 | <NME> Readme.md
<BEF> # should.js
[](https://gitter.im/shouldjs/should.js)
[](https://travis-ci.org/shouldjs/should.js)
[![Selenium Test Status]... | 8 | Merge branch 'master' of github.com:visionmedia/should.js into v2 | 7 | .md | md | mit | shouldjs/should.js |
10040804 | <NME> Readme.md
<BEF> # should.js
[](https://gitter.im/shouldjs/should.js)
[](https://travis-ci.org/shouldjs/should.js)
[![Selenium Test Status]... | 8 | Merge branch 'master' of github.com:visionmedia/should.js into v2 | 7 | .md | md | mit | shouldjs/should.js |
10040805 | <NME> should.d.ts
<BEF> // Type definitions for should.js
declare function should(obj: any): should.Assertion;
// node assert methods
/*interface NodeAssert {
fail(actual: any, expected: any, message?: string, operator?: string): void;
ok(value: any, message?: string): void;
equal(actual: any, expected: any, me... | 4 | Add optional message to [Tt]rue and [Ff]alse so they can be used in typecript tests | 4 | .ts | d | mit | shouldjs/should.js |
10040806 | <NME> should.d.ts
<BEF> // Type definitions for should.js
declare function should(obj: any): should.Assertion;
// node assert methods
/*interface NodeAssert {
fail(actual: any, expected: any, message?: string, operator?: string): void;
ok(value: any, message?: string): void;
equal(actual: any, expected: any, me... | 4 | Add optional message to [Tt]rue and [Ff]alse so they can be used in typecript tests | 4 | .ts | d | mit | shouldjs/should.js |
10040807 | <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 |
10040808 | <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 |
10040809 | <NME> .gitignore
<BEF> node_modules
.idea
should.js.for-tests
*.swp
npm-debug.log
cjs/
es6/
package-lock.json
/as-function.js
<MSG> Exclude regular files generated by OS in repository
Just for convenience.
<DFF> @@ -1,1 +1,3 @@
node_modules
+.DS_Store
+desktop.ini
\ No newline at end of file
| 2 | Exclude regular files generated by OS in repository | 0 | gitignore | mit | shouldjs/should.js | |
10040810 | <NME> .gitignore
<BEF> node_modules
.idea
should.js.for-tests
*.swp
npm-debug.log
cjs/
es6/
package-lock.json
/as-function.js
<MSG> Exclude regular files generated by OS in repository
Just for convenience.
<DFF> @@ -1,1 +1,3 @@
node_modules
+.DS_Store
+desktop.ini
\ No newline at end of file
| 2 | Exclude regular files generated by OS in repository | 0 | gitignore | mit | shouldjs/should.js | |
10040811 | <NME> type.test.js
<BEF> var err = require('../util').err,
should = require('../../');
module.exports['type'] = {
'test arguments': function(){
return arguments;
})(1, 2, 3);
args.should.be.arguments();
[].should.not.be.arguments();
err(function() {
(function() {
return argument... | 21 | Fix assertion for custom errors. Fix #195. | 4 | .js | test | mit | shouldjs/should.js |
10040812 | <NME> type.test.js
<BEF> var err = require('../util').err,
should = require('../../');
module.exports['type'] = {
'test arguments': function(){
return arguments;
})(1, 2, 3);
args.should.be.arguments();
[].should.not.be.arguments();
err(function() {
(function() {
return argument... | 21 | Fix assertion for custom errors. Fix #195. | 4 | .js | test | mit | shouldjs/should.js |
10040813 | <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... | 3 | Primitive it is primitive, not a wrapper | 5 | .js | js | mit | shouldjs/should.js |
10040814 | <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... | 3 | Primitive it is primitive, not a wrapper | 5 | .js | js | mit | shouldjs/should.js |
10040815 | <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 | Minor fixes in docs for upcoming release | 1 | .js | test | mit | shouldjs/should.js |
10040816 | <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 | Minor fixes in docs for upcoming release | 1 | .js | test | mit | shouldjs/should.js |
10040817 | <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... | 2 | Small rename for less confusion. | 2 | .js | js | mit | shouldjs/should.js |
10040818 | <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... | 2 | Small rename for less confusion. | 2 | .js | js | mit | shouldjs/should.js |
10040819 | <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")... | 4 | Use valueOf only in case of primitive type wrappers. Close #107, #104. | 0 | .js | test | mit | shouldjs/should.js |
10040820 | <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")... | 4 | Use valueOf only in case of primitive type wrappers. Close #107, #104. | 0 | .js | test | mit | shouldjs/should.js |
10040821 | <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 | eql should compare with == | 1 | .js | test | mit | shouldjs/should.js |
10040822 | <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 | eql should compare with == | 1 | .js | test | mit | shouldjs/should.js |
10040823 | <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... | 2 | Add alias for strict equality | 1 | .js | js | mit | shouldjs/should.js |
10040824 | <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... | 2 | Add alias for strict equality | 1 | .js | js | mit | shouldjs/should.js |
10040825 | <NME> exist.test.js
<BEF> /**
* Module dependencies.
*/
var should = require('../');
var util = require('util');
function err(fn, msg) {
try {
} catch (err) {
should.equal(msg, err.message);
}
}
function err_should_exist(obj) {
err(function() {
should.exist(obj);
err(function() {
should.exi... | 3 | Always format error as error | 4 | .js | test | mit | shouldjs/should.js |
10040826 | <NME> exist.test.js
<BEF> /**
* Module dependencies.
*/
var should = require('../');
var util = require('util');
function err(fn, msg) {
try {
} catch (err) {
should.equal(msg, err.message);
}
}
function err_should_exist(obj) {
err(function() {
should.exist(obj);
err(function() {
should.exi... | 3 | Always format error as error | 4 | .js | test | mit | shouldjs/should.js |
10040827 | <NME> should.js <BEF> /*! * should - test framework agnostic BDD-style assertions * @version v13.2.2 * @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 | Release 13.2.3 | 2 | .js | js | mit | shouldjs/should.js |
10040828 | <NME> should.js <BEF> /*! * should - test framework agnostic BDD-style assertions * @version v13.2.2 * @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 | Release 13.2.3 | 2 | .js | js | mit | shouldjs/should.js |
10040829 | <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")... | 6 | Make empty check empty, but not a length. | 2 | .js | test | mit | shouldjs/should.js |
10040830 | <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")... | 6 | Make empty check empty, but not a length. | 2 | .js | test | mit | shouldjs/should.js |
10040831 | <NME> should.js <BEF> /*! * should - test framework agnostic BDD-style assertions * @version v8.3.2 * @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... | 2 | Release 8.4.0 | 1 | .js | js | mit | shouldjs/should.js |
10040832 | <NME> should.js <BEF> /*! * should - test framework agnostic BDD-style assertions * @version v8.3.2 * @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... | 2 | Release 8.4.0 | 1 | .js | js | mit | shouldjs/should.js |
10040833 | <NME> History.md
<BEF>
* added tests and docs for `#approximately(value, delta, description)`
* added `#beginWith(prefix, description)` [fredr]
* added `#endWith(suffix, description)`
# 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 ... | 3 | Fill changelog | 0 | .md | md | mit | shouldjs/should.js |
10040834 | <NME> History.md
<BEF>
* added tests and docs for `#approximately(value, delta, description)`
* added `#beginWith(prefix, description)` [fredr]
* added `#endWith(suffix, description)`
# 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 ... | 3 | Fill changelog | 0 | .md | md | mit | shouldjs/should.js |
10040835 | <NME> contain.test.js
<BEF> var err = require("../util").err;
describe("contain*", function() {
it("test containEql", function() {
"hello boy".should.containEql("boy");
[1, 2, 3].should.containEql(3);
[[1], [2], [3]].should.containEql([3]);
[[1], [2], [3, 4]].should.not.containEql([3]);
[{ a: "a"... | 15 | Add test for Set.containEql | 8 | .js | test | mit | shouldjs/should.js |
10040836 | <NME> contain.test.js
<BEF> var err = require("../util").err;
describe("contain*", function() {
it("test containEql", function() {
"hello boy".should.containEql("boy");
[1, 2, 3].should.containEql(3);
[[1], [2], [3]].should.containEql([3]);
[[1], [2], [3, 4]].should.not.containEql([3]);
[{ a: "a"... | 15 | Add test for Set.containEql | 8 | .js | test | mit | shouldjs/should.js |
10040837 | <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")... | 87 | Introduce assertions of each common type | 0 | .js | test | mit | shouldjs/should.js |
10040838 | <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")... | 87 | Introduce assertions of each common type | 0 | .js | test | mit | shouldjs/should.js |
10040839 | <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... | 16 | Undo changes to built should.js | 244 | .js | js | mit | shouldjs/should.js |
10040840 | <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... | 16 | Undo changes to built should.js | 244 | .js | js | mit | shouldjs/should.js |
10040841 | <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(... | 22 | Fix bug in formatting of arrays | 1 | .js | test | mit | shouldjs/should.js |
10040842 | <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(... | 22 | Fix bug in formatting of arrays | 1 | .js | test | mit | shouldjs/should.js |
10040843 | <NME> should.js <BEF> /*! * should - test framework agnostic BDD-style assertions * @version v11.0.0 * @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 = { NU... | 21 | Release 11.1.0 | 6 | .js | js | mit | shouldjs/should.js |
10040844 | <NME> should.js <BEF> /*! * should - test framework agnostic BDD-style assertions * @version v11.0.0 * @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 = { NU... | 21 | Release 11.1.0 | 6 | .js | js | mit | shouldjs/should.js |
10040845 | <NME> Readme.md
<BEF> # should.js
[](https://gitter.im/shouldjs/should.js)
[](https://travis-ci.org/shouldjs/should.js)
[![Selenium Test Status]... | 4 | Added notes about arrays order in .contain* | 0 | .md | md | mit | shouldjs/should.js |
10040846 | <NME> Readme.md
<BEF> # should.js
[](https://gitter.im/shouldjs/should.js)
[](https://travis-ci.org/shouldjs/should.js)
[![Selenium Test Status]... | 4 | Added notes about arrays order in .contain* | 0 | .md | md | mit | shouldjs/should.js |
10040847 | <NME> eql.test.js
<BEF> var err = require('../util').err,
should = require('../../');
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(ar... | 22 | Return old behavour not checking prototypes | 6 | .js | test | mit | shouldjs/should.js |
10040848 | <NME> eql.test.js
<BEF> var err = require('../util').err,
should = require('../../');
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(ar... | 22 | Return old behavour not checking prototypes | 6 | .js | test | mit | shouldjs/should.js |
10040849 | <NME> contain.test.js
<BEF> var err = require("../util").err;
describe("contain*", function() {
it("test containEql", function() {
"hello boy".should.containEql("boy");
[1, 2, 3].should.containEql(3);
[[1], [2], [3]].should.containEql([3]);
[[1], [2], [3, 4]].should.not.containEql([3]);
[{ a: "a"... | 4 | Fix #37 | 0 | .js | test | mit | shouldjs/should.js |