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 |
|---|---|---|---|---|---|---|---|---|
10040450 | <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 | Revert "add .type for eql()s assert" | 5 | .js | js | mit | shouldjs/should.js |
10040451 | <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"... | 1 | Merge pull request #159 from shouldjs/fix-157 | 0 | .js | test | mit | shouldjs/should.js |
10040452 | <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"... | 1 | Merge pull request #159 from shouldjs/fix-157 | 0 | .js | test | mit | shouldjs/should.js |
10040453 | <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
*/
Assertion.add('NaN', function() {
this.params = { operator: 'to be NaN' };
this..assert(this.obj !== t... | 1 | Update number.js | 1 | .js | js | mit | shouldjs/should.js |
10040454 | <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
*/
Assertion.add('NaN', function() {
this.params = { operator: 'to be NaN' };
this..assert(this.obj !== t... | 1 | Update number.js | 1 | .js | js | mit | shouldjs/should.js |
10040455 | <NME> Readme.md
<BEF> # should.js
[](https://gitter.im/shouldjs/should.js)
[](https://travis-ci.org/shouldjs/should.js)
[![Selenium Test Status]... | 4 | Added small note to read me about breaking changes. | 0 | .md | md | mit | shouldjs/should.js |
10040456 | <NME> Readme.md
<BEF> # should.js
[](https://gitter.im/shouldjs/should.js)
[](https://travis-ci.org/shouldjs/should.js)
[![Selenium Test Status]... | 4 | Added small note to read me about breaking changes. | 0 | .md | md | mit | shouldjs/should.js |
10040457 | <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 ... | 34 | First attempt to add .any modifier. | 0 | .js | test | mit | shouldjs/should.js |
10040458 | <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 ... | 34 | First attempt to add .any modifier. | 0 | .js | test | mit | shouldjs/should.js |
10040459 | <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")... | 17 | Added object inclusion support back | 0 | .js | test | mit | shouldjs/should.js |
10040460 | <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")... | 17 | Added object inclusion support back | 0 | .js | test | mit | shouldjs/should.js |
10040461 | <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 | Merge branch 'master' of github.com:shouldjs/should.js | 1 | .js | js | mit | shouldjs/should.js |
10040462 | <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 | Merge branch 'master' of github.com:shouldjs/should.js | 1 | .js | js | mit | shouldjs/should.js |
10040463 | <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";
var util = require('../util');
module.exports =... | 8 | Show diff only if both objects have the same type | 2 | .js | js | mit | shouldjs/should.js |
10040464 | <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";
var util = require('../util');
module.exports =... | 8 | Show diff only if both objects have the same type | 2 | .js | js | mit | shouldjs/should.js |
10040465 | <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 branch 'master' of github.com:visionmedia/should.js | 3 | .js | js | mit | shouldjs/should.js |
10040466 | <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 branch 'master' of github.com:visionmedia/should.js | 3 | .js | js | mit | shouldjs/should.js |
10040467 | <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 | use // for regexp message | 1 | .js | test | mit | shouldjs/should.js |
10040468 | <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 | use // for regexp message | 1 | .js | test | mit | shouldjs/should.js |
10040469 | <NME> .zuul.yml
<BEF> ui: mocha-bdd
browsers:
- name: chrome
version: 45..latest
- name: ie
version: 9..latest
- name: firefox
version: 40..latest
- name: safari
version: 6..latest
- name: safari
version: -2..latest
<MSG> Merge branch 'master' of github.com:shouldjs/should.js
<DFF> @@ -1... | 2 | Merge branch 'master' of github.com:shouldjs/should.js | 2 | .yml | zuul | mit | shouldjs/should.js |
10040470 | <NME> .zuul.yml
<BEF> ui: mocha-bdd
browsers:
- name: chrome
version: 45..latest
- name: ie
version: 9..latest
- name: firefox
version: 40..latest
- name: safari
version: 6..latest
- name: safari
version: -2..latest
<MSG> Merge branch 'master' of github.com:shouldjs/should.js
<DFF> @@ -1... | 2 | Merge branch 'master' of github.com:shouldjs/should.js | 2 | .yml | zuul | mit | shouldjs/should.js |
10040471 | <NME> should.js <BEF> /* * should - test framework agnostic BDD-style assertions * @version v5.1.0 * @author TJ Holowaychuk <tj@vision-media.ca> and contributors * @link https://github.com/shouldjs/should.js * @license MIT */ !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else i... | 67 | Release 5.2.0 | 9 | .js | js | mit | shouldjs/should.js |
10040472 | <NME> should.js <BEF> /* * should - test framework agnostic BDD-style assertions * @version v5.1.0 * @author TJ Holowaychuk <tj@vision-media.ca> and contributors * @link https://github.com/shouldjs/should.js * @license MIT */ !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else i... | 67 | Release 5.2.0 | 9 | .js | js | mit | shouldjs/should.js |
10040473 | <NME> browser-entry.js
<BEF> ADDFILE
<MSG> Add new entry file. Now we expose window.should as should global function
<DFF> @@ -0,0 +1,7 @@
+window.Should = require('./index');
+
+Object.defineProperty(window, 'should', {
+ enumerable: false,
+ configurable: true,
+ value: window.Should
+});
| 7 | Add new entry file. Now we expose window.should as should global function | 0 | .js | js | mit | shouldjs/should.js |
10040474 | <NME> browser-entry.js
<BEF> ADDFILE
<MSG> Add new entry file. Now we expose window.should as should global function
<DFF> @@ -0,0 +1,7 @@
+window.Should = require('./index');
+
+Object.defineProperty(window, 'should', {
+ enumerable: false,
+ configurable: true,
+ value: window.Should
+});
| 7 | Add new entry file. Now we expose window.should as should global function | 0 | .js | js | mit | shouldjs/should.js |
10040475 | <NME> Readme.md
<BEF> # should.js
[](https://gitter.im/shouldjs/should.js)
[](https://travis-ci.org/shouldjs/should.js)
_should_ is an expressiv... | 4 | Update Readme.md | 7 | .md | md | mit | shouldjs/should.js |
10040476 | <NME> Readme.md
<BEF> # should.js
[](https://gitter.im/shouldjs/should.js)
[](https://travis-ci.org/shouldjs/should.js)
_should_ is an expressiv... | 4 | Update Readme.md | 7 | .md | md | mit | shouldjs/should.js |
10040477 | <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. It actually do nothing.
*
* @member... | 1 | Minor grammar correction | 1 | .js | js | mit | shouldjs/should.js |
10040478 | <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. It actually do nothing.
*
* @member... | 1 | Minor grammar correction | 1 | .js | js | mit | shouldjs/should.js |
10040479 | <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 | add .negated property to AssertionErrors | 0 | .js | js | mit | shouldjs/should.js |
10040480 | <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 | add .negated property to AssertionErrors | 0 | .js | js | mit | shouldjs/should.js |
10040481 | <NME> chain.js
<BEF> /*
* should.js - assertion library
* Copyright(c) 2010-2013 TJ Holowaychuk <tj@vision-media.ca>
*
* @memberOf Assertion
* @name be
* @alias Assertion#an
* @alias Assertion#of
* @alias Assertion#a
*
* @memberOf Assertion
* @name be
* @property {should.Assertion} be
... | 1 | Update chain.js | 0 | .js | js | mit | shouldjs/should.js |
10040482 | <NME> chain.js
<BEF> /*
* should.js - assertion library
* Copyright(c) 2010-2013 TJ Holowaychuk <tj@vision-media.ca>
*
* @memberOf Assertion
* @name be
* @alias Assertion#an
* @alias Assertion#of
* @alias Assertion#a
*
* @memberOf Assertion
* @name be
* @property {should.Assertion} be
... | 1 | Update chain.js | 0 | .js | js | mit | shouldjs/should.js |
10040483 | <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 #31 from robi50/patch-1 | 1 | .md | md | mit | shouldjs/should.js |
10040484 | <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 #31 from robi50/patch-1 | 1 | .md | md | mit | shouldjs/should.js |
10040485 | <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 | Added .include() support for strings | 18 | .js | test | mit | shouldjs/should.js |
10040486 | <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 | Added .include() support for strings | 18 | .js | test | mit | shouldjs/should.js |
10040487 | <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. It actually do nothing.
*
* @member... | 1 | Merge branch 'master' of github.com:shouldjs/should.js | 1 | .js | js | mit | shouldjs/should.js |
10040488 | <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. It actually do nothing.
*
* @member... | 1 | Merge branch 'master' of github.com:shouldjs/should.js | 1 | .js | js | mit | shouldjs/should.js |
10040489 | <NME> should.js <BEF> /* * should - test framework agnostic BDD-style assertions * @version v7.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: '... | 18 | Release 7.0.4 | 17 | .js | js | mit | shouldjs/should.js |
10040490 | <NME> should.js <BEF> /* * should - test framework agnostic BDD-style assertions * @version v7.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: '... | 18 | Release 7.0.4 | 17 | .js | js | mit | shouldjs/should.js |
10040491 | <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 | Merge branch 'master' of github.com:shouldjs/should.js | 0 | .js | js | mit | shouldjs/should.js |
10040492 | <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 | Merge branch 'master' of github.com:shouldjs/should.js | 0 | .js | js | mit | shouldjs/should.js |
10040493 | <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... | 1 | Replace rest of getter usage | 1 | .js | js | mit | shouldjs/should.js |
10040494 | <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... | 1 | Replace rest of getter usage | 1 | .js | js | mit | shouldjs/should.js |
10040495 | <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 | Merge pull request #46 from msievers83/master | 0 | .js | js | mit | shouldjs/should.js |
10040496 | <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 | Merge pull request #46 from msievers83/master | 0 | .js | js | mit | shouldjs/should.js |
10040497 | <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 | Check the type of a thrown exception with should.throw(). | 0 | .js | test | mit | shouldjs/should.js |
10040498 | <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 | Check the type of a thrown exception with should.throw(). | 0 | .js | test | mit | shouldjs/should.js |
10040499 | <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 | Adds assertion for inclusion of an object | 2 | .js | test | mit | shouldjs/should.js |
10040500 | <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 | Adds assertion for inclusion of an object | 2 | .js | test | mit | shouldjs/should.js |
10040501 | <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 #182 from shubhodeep9/fix/ts-readme | 2 | .md | md | mit | shouldjs/should.js |
10040502 | <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 #182 from shubhodeep9/fix/ts-readme | 2 | .md | md | mit | shouldjs/should.js |
10040503 | <NME> exist.test.js
<BEF> /**
* Module dependencies.
*/
function err(fn, msg) {
try {
fn();
should.fail("expected an error");
} catch (err) {
should.equal(msg, err.message);
}
should.fail('expected an error');
} catch (err) {
should.equal(msg, err.message);
}
}
}
describe("exist", fun... | 6 | Fix should[.not].exist not having stack trace #84 | 0 | .js | test | mit | shouldjs/should.js |
10040504 | <NME> exist.test.js
<BEF> /**
* Module dependencies.
*/
function err(fn, msg) {
try {
fn();
should.fail("expected an error");
} catch (err) {
should.equal(msg, err.message);
}
should.fail('expected an error');
} catch (err) {
should.equal(msg, err.message);
}
}
}
describe("exist", fun... | 6 | Fix should[.not].exist not having stack trace #84 | 0 | .js | test | mit | shouldjs/should.js |
10040505 | <NME> exist.test.js
<BEF> /**
* Module dependencies.
*/
function err(fn, msg) {
try {
fn();
should.fail("expected an error");
} catch (err) {
should.equal(msg, err.message);
}
}
function err_should_exist(obj) {
err(function() {
should.exist(obj);
}, "expected " + should.format(obj) + " to ... | 7 | Test code cleanup. | 11 | .js | test | mit | shouldjs/should.js |
10040506 | <NME> exist.test.js
<BEF> /**
* Module dependencies.
*/
function err(fn, msg) {
try {
fn();
should.fail("expected an error");
} catch (err) {
should.equal(msg, err.message);
}
}
function err_should_exist(obj) {
err(function() {
should.exist(obj);
}, "expected " + should.format(obj) + " to ... | 7 | Test code cleanup. | 11 | .js | test | mit | shouldjs/should.js |
10040507 | <NME> .gitignore
<BEF> node_modules
.idea
should.js.for-tests
*.swp
npm-debug.log
cjs/
es6/
package-lock.json
/as-function.js
<MSG> Merge pull request #124 from tjwudi/master
Exclude regular files generated by OS in repository
<DFF> @@ -1,1 +1,3 @@
node_modules
+.DS_Store
+desktop.ini
\ No newline at end of file
| 2 | Merge pull request #124 from tjwudi/master | 0 | gitignore | mit | shouldjs/should.js | |
10040508 | <NME> .gitignore
<BEF> node_modules
.idea
should.js.for-tests
*.swp
npm-debug.log
cjs/
es6/
package-lock.json
/as-function.js
<MSG> Merge pull request #124 from tjwudi/master
Exclude regular files generated by OS in repository
<DFF> @@ -1,1 +1,3 @@
node_modules
+.DS_Store
+desktop.ini
\ No newline at end of file
| 2 | Merge pull request #124 from tjwudi/master | 0 | gitignore | mit | shouldjs/should.js | |
10040509 | <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 | removed optional desc from .throw() | 10 | .js | test | mit | shouldjs/should.js |
10040510 | <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 | removed optional desc from .throw() | 10 | .js | test | mit | shouldjs/should.js |
10040511 | <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 | Fix TypeError in .containEql with checking that property exists. | 0 | .js | test | mit | shouldjs/should.js |
10040512 | <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 | Fix TypeError in .containEql with checking that property exists. | 0 | .js | test | mit | shouldjs/should.js |
10040513 | <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... | 13 | Add .belowOrEqual and .aboveOrEqual | 1 | .js | test | mit | shouldjs/should.js |
10040514 | <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... | 13 | Add .belowOrEqual and .aboveOrEqual | 1 | .js | test | mit | shouldjs/should.js |
10040515 | <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... | 2 | Add missing return type | 2 | .ts | d | mit | shouldjs/should.js |
10040516 | <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... | 2 | Add missing return type | 2 | .ts | d | mit | shouldjs/should.js |
10040517 | <NME> Readme.md
<BEF> # should.js
[](https://gitter.im/shouldjs/should.js)
[](https://travis-ci.org/shouldjs/should.js)
[![Selenium Test Status]... | 14 | Merge pull request #146 from alsotang/update-doc | 2 | .md | md | mit | shouldjs/should.js |
10040518 | <NME> Readme.md
<BEF> # should.js
[](https://gitter.im/shouldjs/should.js)
[](https://travis-ci.org/shouldjs/should.js)
[![Selenium Test Status]... | 14 | Merge pull request #146 from alsotang/update-doc | 2 | .md | md | mit | shouldjs/should.js |
10040519 | <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 | Update should.js | 0 | .js | js | mit | shouldjs/should.js |
10040520 | <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 | Update should.js | 0 | .js | js | mit | shouldjs/should.js |
10040521 | <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 | jsdoc example: 'string' should be 'String' | 1 | .js | js | mit | shouldjs/should.js |
10040522 | <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 | jsdoc example: 'string' should be 'String' | 1 | .js | js | mit | shouldjs/should.js |
10040523 | <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... | 29 | Fill history and docs | 2 | .js | js | mit | shouldjs/should.js |
10040524 | <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... | 29 | Fill history and docs | 2 | .js | js | mit | shouldjs/should.js |
10040525 | <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... | 20 | Started keys() | 1 | .js | js | mit | shouldjs/should.js |
10040526 | <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... | 20 | Started keys() | 1 | .js | js | mit | shouldjs/should.js |
10040527 | <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")... | 16 | Added Ininity assertion, fixed test for NaN | 0 | .js | test | mit | shouldjs/should.js |
10040528 | <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")... | 16 | Added Ininity assertion, fixed test for NaN | 0 | .js | test | mit | shouldjs/should.js |
10040529 | <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 | Remove proxy test | 10 | .js | test | mit | shouldjs/should.js |
10040530 | <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 | Remove proxy test | 10 | .js | test | mit | shouldjs/should.js |
10040531 | <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;
ok = false;
fn();
ok = false;
} catch (err) {
if ((typeof msg == 'string' && err.message !== msg) || (msg instanc... | 12 | Prettier all | 9 | .js | js | mit | shouldjs/should.js |
10040532 | <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;
ok = false;
fn();
ok = false;
} catch (err) {
if ((typeof msg == 'string' && err.message !== msg) || (msg instanc... | 12 | Prettier all | 9 | .js | js | mit | shouldjs/should.js |
10040533 | <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");
... | 41 | Add tests for matchAny assertion | 1 | .js | test | mit | shouldjs/should.js |
10040534 | <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");
... | 41 | Add tests for matchAny assertion | 1 | .js | test | mit | shouldjs/should.js |
10040535 | <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... | 1 | Tweak working in matchAny description | 1 | .js | js | mit | shouldjs/should.js |
10040536 | <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... | 1 | Tweak working in matchAny description | 1 | .js | js | mit | shouldjs/should.js |
10040537 | <NME> Readme.md
<BEF> # should.js
[](https://gitter.im/shouldjs/should.js)
[](https://travis-ci.org/shouldjs/should.js)
[![Selenium Test Status]... | 2 | Add MIT license text file, move contritions guidelines to separate file. | 10 | .md | md | mit | shouldjs/should.js |
10040538 | <NME> Readme.md
<BEF> # should.js
[](https://gitter.im/shouldjs/should.js)
[](https://travis-ci.org/shouldjs/should.js)
[![Selenium Test Status]... | 2 | Add MIT license text file, move contritions guidelines to separate file. | 10 | .md | md | mit | shouldjs/should.js |
10040539 | <NME> should.js <BEF> /* * should - test framework agnostic BDD-style assertions * @version v4.6.4 * @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: '... | 54 | Release 4.6.5 | 34 | .js | js | mit | shouldjs/should.js |
10040540 | <NME> should.js <BEF> /* * should - test framework agnostic BDD-style assertions * @version v4.6.4 * @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: '... | 54 | Release 4.6.5 | 34 | .js | js | mit | shouldjs/should.js |
10040541 | <NME> Readme.md
<BEF> # should.js
[](https://gitter.im/shouldjs/should.js)
[](https://travis-ci.org/shouldjs/should.js)
[![Selenium Test Status]... | 18 | Fix browser version naming | 0 | .md | md | mit | shouldjs/should.js |
10040542 | <NME> Readme.md
<BEF> # should.js
[](https://gitter.im/shouldjs/should.js)
[](https://travis-ci.org/shouldjs/should.js)
[![Selenium Test Status]... | 18 | Fix browser version naming | 0 | .md | md | mit | shouldjs/should.js |
10040543 | <NME> nested.test.js
<BEF> var util = require("./util");
should.Assertion.add(
"_10",
should.Assertion.add('_10', function() {
this.params = {operator: 'to be a number 10'};
this.is.Number.and.equal(10);
}, true);
it('should throw when used last managed context', function() {
util.err(function() {
(11).s... | 5 | Merge remote-tracking branch 'origin/no-get' | 5 | .js | test | mit | shouldjs/should.js |
10040544 | <NME> nested.test.js
<BEF> var util = require("./util");
should.Assertion.add(
"_10",
should.Assertion.add('_10', function() {
this.params = {operator: 'to be a number 10'};
this.is.Number.and.equal(10);
}, true);
it('should throw when used last managed context', function() {
util.err(function() {
(11).s... | 5 | Merge remote-tracking branch 'origin/no-get' | 5 | .js | test | mit | shouldjs/should.js |
10040545 | <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 | Add .been, i.e. spy.should.have.been.called() | 1 | .js | js | mit | shouldjs/should.js |
10040546 | <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 | Add .been, i.e. spy.should.have.been.called() | 1 | .js | js | mit | shouldjs/should.js |
10040547 | <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 | Added .arguments | 0 | .js | test | mit | shouldjs/should.js |
10040548 | <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 | Added .arguments | 0 | .js | test | mit | shouldjs/should.js |
10040549 | <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 |