How to use proclaim - 10 common examples

To help you get started, we’ve selected a few proclaim examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github OmgImAlexis / upcast / test / unit / upcast.js View on Github external
it(desc, function () {
                    var i, len = pairs.length, pair;
                    for (i = 0; i < len; i ++) {
                        pair = pairs[i];
                        if (isNaN(pair)) {
                            assert.isTrue(isNaN(upcast.to(pair, 'function')));
                        } else {
                            assert.deepEqual(upcast.to(pair, 'function')(), pair);
                        }
                    }
                });
            }
github springernature / truffler / test / unit / lib / truffler.js View on Github external
it('should call the `_run` method with `options.url`, the options (minus URL), and the callback', function () {
				assert.calledOnce(instance._run);
				assert.strictEqual(instance._run.firstCall.args[0], options.url);
				assert.deepEqual(instance._run.firstCall.args[1], options);
				assert.strictEqual(instance._run.firstCall.args[2], done);
			});
		});
github pa11y / pa11y / test / unit / lib / pa11y.js View on Github external
it('defaults the options object with `pa11y.defaults`', () => {
			assert.calledOnce(extend);
			assert.isObject(extend.firstCall.args[0]);
			assert.strictEqual(extend.firstCall.args[1], pa11y.defaults);
			assert.deepEqual(extend.firstCall.args[2], options);
		});
github avocode / combokeys / test / unbind.js View on Github external
it('unbinds \'any-character\'', function () {
    var element = makeElement()
    var spy = sinon.spy()
    var combokeys = new Combokeys(element)
    combokeys.bind('any-character', spy)
    KeyEvent.simulate('a'.charCodeAt(0), 65, null, element)
    assert.strictEqual(spy.callCount, 1, 'just checking the callback')
    combokeys.unbind('any-character')
    KeyEvent.simulate('a'.charCodeAt(0), 65, null, element)
    KeyEvent.simulate('b'.charCodeAt(0), 66, null, element)
    assert.strictEqual(spy.callCount, 1, 'unbound')
  })
github springernature / truffler / test / unit / lib / truffler.js View on Github external
it('should call the `_run` method with the URL, an empty options object, and the callback', function () {
				assert.calledOnce(instance._run);
				assert.strictEqual(instance._run.firstCall.args[0], url);
				assert.deepEqual(instance._run.firstCall.args[1], {});
				assert.strictEqual(instance._run.firstCall.args[2], done);
			});
		});
github springernature / truffler / test / unit / lib / truffler.js View on Github external
it('should call the `_run` method with `options.url`, the options (minus URL), and the callback', function () {
				assert.calledOnce(instance._run);
				assert.strictEqual(instance._run.firstCall.args[0], options.url);
				assert.deepEqual(instance._run.firstCall.args[1], options);
				assert.strictEqual(instance._run.firstCall.args[2], done);
			});
		});
github rowanmanning / joblint / test / unit / linter.js View on Github external
it('should add the passed in rule to the rules property', function () {
                    assert.lengthEquals(linter.rules, 2);
                    assert.strictEqual(linter.rules[0], rule1);
                    assert.strictEqual(linter.rules[1], rule2);
                });
github rowanmanning / joblint / test / unit / linter.js View on Github external
it('should add the passed in rule to the rules property', function () {
                    assert.lengthEquals(linter.rules, 2);
                    assert.strictEqual(linter.rules[0], rule1);
                    assert.strictEqual(linter.rules[1], rule2);
                });
github Financial-Times / polyfill-library / test / unit / lib / UA.js View on Github external
it('exports a UA constructor', () => {
		assert.isFunction(UA);
		assert.isFunction(UA.prototype.getFamily);
		assert.isFunction(UA.prototype.getVersion);
		assert.isFunction(UA.prototype.satisfies);
		assert.isFunction(UA.prototype.getBaseline);
		assert.isFunction(UA.prototype.meetsBaseline);
		assert.isFunction(UA.prototype.isUnknown);
		assert.isFunction(UA.normalize);
		assert.isFunction(UA.getBaselines);
	});
github Financial-Times / polyfill-service / test / unit / lib / UA.js View on Github external
it('exports a UA constructor', () => {
		assert.isFunction(UA);
		assert.isFunction(UA.prototype.getFamily);
		assert.isFunction(UA.prototype.getVersion);
		assert.isFunction(UA.prototype.satisfies);
		assert.isFunction(UA.prototype.getBaseline);
		assert.isFunction(UA.prototype.meetsBaseline);
		assert.isFunction(UA.prototype.isUnknown);
		assert.isFunction(UA.normalize);
		assert.isFunction(UA.getBaselines);
	});

proclaim

A simple assertion library for server and client side JavaScript

MIT
Latest version published 5 years ago

Package Health Score

48 / 100
Full package analysis