How to use the proclaim.strictEqual function in proclaim

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 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);
                });

proclaim

A simple assertion library for server and client side JavaScript

MIT
Latest version published 6 years ago

Package Health Score

48 / 100
Full package analysis