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 |
|---|---|---|---|---|---|---|---|---|
10040650 | <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 |
10040651 | <NME> Readme.md
<BEF> # should.js
[](https://gitter.im/shouldjs/should.js)
[](https://travis-ci.org/shouldjs/should.js)
[![Selenium Test Status]... | 8 | Merge pull request #179 from msemenistyi/master | 1 | .md | md | mit | shouldjs/should.js |
10040652 | <NME> Readme.md
<BEF> # should.js
[](https://gitter.im/shouldjs/should.js)
[](https://travis-ci.org/shouldjs/should.js)
[![Selenium Test Status]... | 8 | Merge pull request #179 from msemenistyi/master | 1 | .md | md | mit | shouldjs/should.js |
10040653 | <NME> should.js <BEF> /*! * should - test framework agnostic BDD-style assertions * @version v11.1.2 * @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... | 3,523 | Release 11.2.0 | 3,503 | .js | js | mit | shouldjs/should.js |
10040654 | <NME> should.js <BEF> /*! * should - test framework agnostic BDD-style assertions * @version v11.1.2 * @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... | 3,523 | Release 11.2.0 | 3,503 | .js | js | mit | shouldjs/should.js |
10040655 | <NME> match.test.js
<BEF> var err = require("../util").err;
describe("match", function() {
it("test string match(regexp)", function() {
"foobar".should.match(/^foo/);
"foobar".should.not.match(/^bar/);
err(function() {
"foobar".should.match(/^bar/i);
}, "expected 'foobar' to match /^bar/i");
... | 4 | Before doing matching for object - object. Check that object have property | 0 | .js | test | mit | shouldjs/should.js |
10040656 | <NME> match.test.js
<BEF> var err = require("../util").err;
describe("match", function() {
it("test string match(regexp)", function() {
"foobar".should.match(/^foo/);
"foobar".should.not.match(/^bar/);
err(function() {
"foobar".should.match(/^bar/i);
}, "expected 'foobar' to match /^bar/i");
... | 4 | Before doing matching for object - object. Check that object have property | 0 | .js | test | mit | shouldjs/should.js |
10040657 | <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... | 0 | remove stringification, will do this in mocha | 2 | .js | js | mit | shouldjs/should.js |
10040658 | <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... | 0 | remove stringification, will do this in mocha | 2 | .js | js | mit | shouldjs/should.js |
10040659 | <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... | 2 | Update match.js | 0 | .js | js | mit | shouldjs/should.js |
10040660 | <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... | 2 | Update match.js | 0 | .js | js | mit | shouldjs/should.js |
10040661 | <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 | Release 3.3.1 | 4 | .js | js | mit | shouldjs/should.js |
10040662 | <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 | Release 3.3.1 | 4 | .js | js | mit | shouldjs/should.js |
10040663 | <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")... | 18 | Added string() | 0 | .js | test | mit | shouldjs/should.js |
10040664 | <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")... | 18 | Added string() | 0 | .js | test | mit | shouldjs/should.js |
10040665 | <NME> Readme.md
<BEF> # should.js
[](https://gitter.im/shouldjs/should.js)
[](https://travis-ci.org/shouldjs/should.js)
[![Selenium Test Status]... | 1 | Correct example of additional message | 1 | .md | md | mit | shouldjs/should.js |
10040666 | <NME> Readme.md
<BEF> # should.js
[](https://gitter.im/shouldjs/should.js)
[](https://travis-ci.org/shouldjs/should.js)
[![Selenium Test Status]... | 1 | Correct example of additional message | 1 | .md | md | mit | shouldjs/should.js |
10040667 | <NME> should.js <BEF> /*! * should - test framework agnostic BDD-style assertions * @version v8.4.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 (root, factory) { if (typeof define... | 3,302 | Release 9.0.0 | 3,477 | .js | js | mit | shouldjs/should.js |
10040668 | <NME> should.js <BEF> /*! * should - test framework agnostic BDD-style assertions * @version v8.4.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 (root, factory) { if (typeof define... | 3,302 | Release 9.0.0 | 3,477 | .js | js | mit | shouldjs/should.js |
10040669 | <NME> should.js <BEF> /*! * should - test framework agnostic BDD-style assertions * @version v9.0.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 = { NUM... | 1 | Release 9.0.2 | 1 | .js | js | mit | shouldjs/should.js |
10040670 | <NME> should.js <BEF> /*! * should - test framework agnostic BDD-style assertions * @version v9.0.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 = { NUM... | 1 | Release 9.0.2 | 1 | .js | js | mit | shouldjs/should.js |
10040671 | <NME> should.js <BEF> /*! * should - test framework agnostic BDD-style assertions * @version v13.0.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... | 41 | Release 13.1.0 | 35 | .js | js | mit | shouldjs/should.js |
10040672 | <NME> should.js <BEF> /*! * should - test framework agnostic BDD-style assertions * @version v13.0.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... | 41 | Release 13.1.0 | 35 | .js | js | mit | shouldjs/should.js |
10040673 | <NME> contain.js
<BEF> /*
* should.js - assertion library
* Copyright(c) 2010-2013 TJ Holowaychuk <tj@vision-media.ca>
* MIT Licensed
*/
var util = require('../util');
_eql = require('../eql');
module.exports = function(should, Assertion) {
export default function(should, Assertion) {
var i = should.format;
... | 1 | Merge pull request #36 from mrlannigan/master | 1 | .js | js | mit | shouldjs/should.js |
10040674 | <NME> contain.js
<BEF> /*
* should.js - assertion library
* Copyright(c) 2010-2013 TJ Holowaychuk <tj@vision-media.ca>
* MIT Licensed
*/
var util = require('../util');
_eql = require('../eql');
module.exports = function(should, Assertion) {
export default function(should, Assertion) {
var i = should.format;
... | 1 | Merge pull request #36 from mrlannigan/master | 1 | .js | js | mit | shouldjs/should.js |
10040675 | <NME> .npmignore
<BEF> ADDFILE
<MSG> add .npmignore
<DFF> @@ -0,0 +1,3 @@
+should.js
+examples
+test
| 3 | add .npmignore | 0 | npmignore | mit | shouldjs/should.js | |
10040676 | <NME> .npmignore
<BEF> ADDFILE
<MSG> add .npmignore
<DFF> @@ -0,0 +1,3 @@
+should.js
+examples
+test
| 3 | add .npmignore | 0 | npmignore | mit | shouldjs/should.js | |
10040677 | <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 | Make instanceOf and throwError be aliased like others | 3 | .js | js | mit | shouldjs/should.js |
10040678 | <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 | Make instanceOf and throwError be aliased like others | 3 | .js | js | mit | shouldjs/should.js |
10040679 | <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")... | 3 | Extend .match (thanks @alsotang). Added tests for missing assertions. loses #160, #159, #158, #155, #152. | 1 | .js | test | mit | shouldjs/should.js |
10040680 | <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")... | 3 | Extend .match (thanks @alsotang). Added tests for missing assertions. loses #160, #159, #158, #155, #152. | 1 | .js | test | mit | shouldjs/should.js |
10040681 | <NME> should.js <BEF> /*! * should - test framework agnostic BDD-style assertions * @version v8.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: ... | 104 | Release 8.2.2 | 89 | .js | js | mit | shouldjs/should.js |
10040682 | <NME> should.js <BEF> /*! * should - test framework agnostic BDD-style assertions * @version v8.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: ... | 104 | Release 8.2.2 | 89 | .js | js | mit | shouldjs/should.js |
10040683 | <NME> should.js <BEF> /* * should - test framework agnostic BDD-style assertions * @version v7.0.1 * @author TJ Holowaychuk <tj@vision-media.ca> and contributors * @link https://github.com/shouldjs/should.js * @license MIT */ (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}els... | 1,078 | Release 7.0.2 | 1,063 | .js | js | mit | shouldjs/should.js |
10040684 | <NME> should.js <BEF> /* * should - test framework agnostic BDD-style assertions * @version v7.0.1 * @author TJ Holowaychuk <tj@vision-media.ca> and contributors * @link https://github.com/shouldjs/should.js * @license MIT */ (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}els... | 1,078 | Release 7.0.2 | 1,063 | .js | js | mit | shouldjs/should.js |
10040685 | <NME> util.js
<BEF> var should = require("../");
function err(fn, msg) {
if (arguments.length > 2) {
msg = Array.prototype.slice.call(arguments, 1).join("\n");
}
var ok = true;
try {
fn();
ok = false;
} catch (err) {
if (
(typeof msg == "string" && err.message !== msg) ||
(msg in... | 0 | Fix tests | 2 | .js | js | mit | shouldjs/should.js |
10040686 | <NME> util.js
<BEF> var should = require("../");
function err(fn, msg) {
if (arguments.length > 2) {
msg = Array.prototype.slice.call(arguments, 1).join("\n");
}
var ok = true;
try {
fn();
ok = false;
} catch (err) {
if (
(typeof msg == "string" && err.message !== msg) ||
(msg in... | 0 | Fix tests | 2 | .js | js | mit | shouldjs/should.js |
10040687 | <NME> History.md
<BEF> 4.6.5 / 2015-02-05
==================
# 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 (added... | 9 | Update History.md | 0 | .md | md | mit | shouldjs/should.js |
10040688 | <NME> History.md
<BEF> 4.6.5 / 2015-02-05
==================
# 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 (added... | 9 | Update History.md | 0 | .md | md | mit | shouldjs/should.js |
10040689 | <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... | 11 | Release 2.0.2. | 1 | .js | js | mit | shouldjs/should.js |
10040690 | <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... | 11 | Release 2.0.2. | 1 | .js | js | mit | shouldjs/should.js |
10040691 | <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 ... | 6 | Added .enumerables | 0 | .js | test | mit | shouldjs/should.js |
10040692 | <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 ... | 6 | Added .enumerables | 0 | .js | test | mit | shouldjs/should.js |
10040693 | <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 (#119) | 0 | .js | test | mit | shouldjs/should.js |
10040694 | <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 (#119) | 0 | .js | test | mit | shouldjs/should.js |
10040695 | <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 |
10040696 | <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 |
10040697 | <NME> assertion.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 AssertionError from "./assertion-error";
import { merge } from "should-util";
// a bit hacky way how t... | 9 | Update assertion.js | 1 | .js | js | mit | shouldjs/should.js |
10040698 | <NME> assertion.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 AssertionError from "./assertion-error";
import { merge } from "should-util";
// a bit hacky way how t... | 9 | Update assertion.js | 1 | .js | js | mit | shouldjs/should.js |
10040699 | <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.enumerable('length');
}, "expected 'asd' to... | 27 | A bit more accurate messages | 27 | .js | test | mit | shouldjs/should.js |
10040700 | <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.enumerable('length');
}, "expected 'asd' to... | 27 | A bit more accurate messages | 27 | .js | test | mit | shouldjs/should.js |
10040701 | <NME> should.js <BEF> /*! * should - test framework agnostic BDD-style assertions * @version v8.0.2 * @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: ... | 13 | Release 8.1.0 | 1 | .js | js | mit | shouldjs/should.js |
10040702 | <NME> should.js <BEF> /*! * should - test framework agnostic BDD-style assertions * @version v8.0.2 * @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: ... | 13 | Release 8.1.0 | 1 | .js | js | mit | shouldjs/should.js |
10040703 | <NME> error.test.js
<BEF> var err = require('../util').err,
should = require('../../');
describe('error', function() {
it('test throw()', function() {
(function() {}.should.not.throw());
}, 'expected \'a\' to be a function\n expected \'a\' to have type function\n expected \'string\' to be \'funct... | 36 | Fix #44 and #55 | 6 | .js | test | mit | shouldjs/should.js |
10040704 | <NME> error.test.js
<BEF> var err = require('../util').err,
should = require('../../');
describe('error', function() {
it('test throw()', function() {
(function() {}.should.not.throw());
}, 'expected \'a\' to be a function\n expected \'a\' to have type function\n expected \'string\' to be \'funct... | 36 | Fix #44 and #55 | 6 | .js | test | mit | shouldjs/should.js |
10040705 | <NME> should.js <BEF> /** * should - test framework agnostic BDD-style assertions * @version v4.3.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: ... | 390 | Release 4.4.0 | 129 | .js | js | mit | shouldjs/should.js |
10040706 | <NME> should.js <BEF> /** * should - test framework agnostic BDD-style assertions * @version v4.3.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: ... | 390 | Release 4.4.0 | 129 | .js | js | mit | shouldjs/should.js |
10040707 | <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");
'asd'.should.have.enumera... | 3 | Update code to new packages | 3 | .js | test | mit | shouldjs/should.js |
10040708 | <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");
'asd'.should.have.enumera... | 3 | Update code to new packages | 3 | .js | test | mit | shouldjs/should.js |
10040709 | <NME> contain.js
<BEF> /*
* should.js - assertion library
* Copyright(c) 2010-2013 TJ Holowaychuk <tj@vision-media.ca>
* MIT Licensed
*/
var util = require('../util');
_eql = require('../eql');
module.exports = function(should, Assertion) {
export default function(should, Assertion) {
var i = should.format;
... | 1 | fixed global leak of _eql | 1 | .js | js | mit | shouldjs/should.js |
10040710 | <NME> contain.js
<BEF> /*
* should.js - assertion library
* Copyright(c) 2010-2013 TJ Holowaychuk <tj@vision-media.ca>
* MIT Licensed
*/
var util = require('../util');
_eql = require('../eql');
module.exports = function(should, Assertion) {
export default function(should, Assertion) {
var i = should.format;
... | 1 | fixed global leak of _eql | 1 | .js | js | mit | shouldjs/should.js |
10040711 | <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 | isNaN now rejects all non-numbers | 0 | .js | test | mit | shouldjs/should.js |
10040712 | <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 | isNaN now rejects all non-numbers | 0 | .js | test | mit | shouldjs/should.js |
10040713 | <NME> should.js <BEF> /* * should - test framework agnostic BDD-style assertions * @version v4.6.3 * @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.6.4 | 3 | .js | js | mit | shouldjs/should.js |
10040714 | <NME> should.js <BEF> /* * should - test framework agnostic BDD-style assertions * @version v4.6.3 * @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.6.4 | 3 | .js | js | mit | shouldjs/should.js |
10040715 | <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 ... | 2 | Update should-equal, add reason why eql failed | 1 | .js | test | mit | shouldjs/should.js |
10040716 | <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 ... | 2 | Update should-equal, add reason why eql failed | 1 | .js | test | mit | shouldjs/should.js |
10040717 | <NME> Readme.md
<BEF> # should.js
[](https://gitter.im/shouldjs/should.js)
[](https://travis-ci.org/shouldjs/should.js)
[![Selenium Test Status]... | 8 | Fill doc for endWith | 0 | .md | md | mit | shouldjs/should.js |
10040718 | <NME> Readme.md
<BEF> # should.js
[](https://gitter.im/shouldjs/should.js)
[](https://travis-ci.org/shouldjs/should.js)
[![Selenium Test Status]... | 8 | Fill doc for endWith | 0 | .md | md | mit | shouldjs/should.js |
10040719 | <NME> History.md
<BEF> 11.0.0 / 2016-08-10
===================
* From code extracted parts for traversing different types in similar way.
This allows from now easy extend library to almost any collection class.
Now should.js everywhere supports Set/Map/WeakSet/WeakMap.
* .empty() now uses new type adaptors
*... | 8 | Merge pull request #120 from Awk34/patch-1 | 8 | .md | md | mit | shouldjs/should.js |
10040720 | <NME> History.md
<BEF> 11.0.0 / 2016-08-10
===================
* From code extracted parts for traversing different types in similar way.
This allows from now easy extend library to almost any collection class.
Now should.js everywhere supports Set/Map/WeakSet/WeakMap.
* .empty() now uses new type adaptors
*... | 8 | Merge pull request #120 from Awk34/patch-1 | 8 | .md | md | mit | shouldjs/should.js |
10040721 | <NME> error.test.js
<BEF> var err = require("../util").err;
describe('error', function() {
it('test throw()', function() {
(function(){}).should.not.throw();
(function(){ throw new Error('fail') }).should.throw();
err(function() {
(function() {}.should.throw());
}, "expected Function { name:... | 4 | .throw() should check that given object is a function. Fix #27 | 0 | .js | test | mit | shouldjs/should.js |
10040722 | <NME> error.test.js
<BEF> var err = require("../util").err;
describe('error', function() {
it('test throw()', function() {
(function(){}).should.not.throw();
(function(){ throw new Error('fail') }).should.throw();
err(function() {
(function() {}.should.throw());
}, "expected Function { name:... | 4 | .throw() should check that given object is a function. Fix #27 | 0 | .js | test | mit | shouldjs/should.js |
10040723 | <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 | Fix 'lengthOf' alias to 'length' | 0 | .js | test | mit | shouldjs/should.js |
10040724 | <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 | Fix 'lengthOf' alias to 'length' | 0 | .js | test | mit | shouldjs/should.js |
10040725 | <NME> should.js <BEF> /*! * should - test framework agnostic BDD-style assertions * @version v11.1.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 = { NU... | 33 | Release 11.1.2 | 4 | .js | js | mit | shouldjs/should.js |
10040726 | <NME> should.js <BEF> /*! * should - test framework agnostic BDD-style assertions * @version v11.1.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 = { NU... | 33 | Release 11.1.2 | 4 | .js | js | mit | shouldjs/should.js |
10040727 | <NME> assert.test.js
<BEF> // Copyright Joyent, Inc. and other Node contributors.
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation th... | 335 | Tests for assert. Adopted with assumptions in shouldjs | 0 | .js | test | mit | shouldjs/should.js |
10040728 | <NME> assert.test.js
<BEF> // Copyright Joyent, Inc. and other Node contributors.
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation th... | 335 | Tests for assert. Adopted with assumptions in shouldjs | 0 | .js | test | mit | shouldjs/should.js |
10040729 | <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")... | 24 | Merge pull request #79 from snakamura/throw_type | 0 | .js | test | mit | shouldjs/should.js |
10040730 | <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")... | 24 | Merge pull request #79 from snakamura/throw_type | 0 | .js | test | mit | shouldjs/should.js |
10040731 | <NME> util.js
<BEF> var should = require('../');
function err(fn, msg) {
if(arguments.length > 2) {
msg = Array.prototype.slice.call(arguments, 1).join('\n');
}
fn();
ok = false;
fn();
ok = false;
} catch (err) {
if((typeof msg == 'string' && err.message !== msg) || (msg instanceof RegEx... | 3 | Linting | 3 | .js | js | mit | shouldjs/should.js |
10040732 | <NME> util.js
<BEF> var should = require('../');
function err(fn, msg) {
if(arguments.length > 2) {
msg = Array.prototype.slice.call(arguments, 1).join('\n');
}
fn();
ok = false;
fn();
ok = false;
} catch (err) {
if((typeof msg == 'string' && err.message !== msg) || (msg instanceof RegEx... | 3 | Linting | 3 | .js | js | mit | shouldjs/should.js |
10040733 | <NME> Readme.md
<BEF> # should.js
[](https://gitter.im/shouldjs/should.js)
[](https://travis-ci.org/shouldjs/should.js)
[![Selenium Test Status]... | 8 | readme:add warning about ok for null and undefined | 1 | .md | md | mit | shouldjs/should.js |
10040734 | <NME> Readme.md
<BEF> # should.js
[](https://gitter.im/shouldjs/should.js)
[](https://travis-ci.org/shouldjs/should.js)
[![Selenium Test Status]... | 8 | readme:add warning about ok for null and undefined | 1 | .md | md | mit | shouldjs/should.js |
10040735 | <NME> should.js <BEF> /** * should - test framework agnostic BDD-style assertions * @version v4.0.3 * @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: ... | 5 | Release 4.0.4 | 4 | .js | js | mit | shouldjs/should.js |
10040736 | <NME> should.js <BEF> /** * should - test framework agnostic BDD-style assertions * @version v4.0.3 * @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: ... | 5 | Release 4.0.4 | 4 | .js | js | mit | shouldjs/should.js |
10040737 | <NME> should.js <BEF> /*! * should - test framework agnostic BDD-style assertions * @version v11.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... | 820 | Release 12.0.0 | 606 | .js | js | mit | shouldjs/should.js |
10040738 | <NME> should.js <BEF> /*! * should - test framework agnostic BDD-style assertions * @version v11.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... | 820 | Release 12.0.0 | 606 | .js | js | mit | shouldjs/should.js |
10040739 | <NME> match.test.js
<BEF> var err = require("../util").err;
describe("match", function() {
it("test string match(regexp)", function() {
"foobar".should.match(/^foo/);
"foobar".should.not.match(/^bar/);
err(function() {
"foobar".should.match(/^bar/i);
}, "expected 'foobar' to match /^bar/i");
... | 3 | Added matching to properties in .throw() | 3 | .js | test | mit | shouldjs/should.js |
10040740 | <NME> match.test.js
<BEF> var err = require("../util").err;
describe("match", function() {
it("test string match(regexp)", function() {
"foobar".should.match(/^foo/);
"foobar".should.not.match(/^bar/);
err(function() {
"foobar".should.match(/^bar/i);
}, "expected 'foobar' to match /^bar/i");
... | 3 | Added matching to properties in .throw() | 3 | .js | test | mit | shouldjs/should.js |
10040741 | <NME> should.js <BEF> /*! * should - test framework agnostic BDD-style assertions * @version v10.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... | 901 | Release 11.0.0 | 868 | .js | js | mit | shouldjs/should.js |
10040742 | <NME> should.js <BEF> /*! * should - test framework agnostic BDD-style assertions * @version v10.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... | 901 | Release 11.0.0 | 868 | .js | js | mit | shouldjs/should.js |
10040743 | <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... | 3 | Added aliases for reserved words | 1 | .js | js | mit | shouldjs/should.js |
10040744 | <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... | 3 | Added aliases for reserved words | 1 | .js | js | mit | shouldjs/should.js |
10040745 | <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... | 1 | Be more lax when setting .inspect on HTMLElement | 1 | .js | js | mit | shouldjs/should.js |
10040746 | <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... | 1 | Be more lax when setting .inspect on HTMLElement | 1 | .js | js | mit | shouldjs/should.js |
10040747 | <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 | Merge branch 'master' of github.com:shouldjs/should.js | 5 | .js | js | mit | shouldjs/should.js |
10040748 | <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 | Merge branch 'master' of github.com:shouldjs/should.js | 5 | .js | js | mit | shouldjs/should.js |
10040749 | <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 |