How to use the proclaim.isTrue 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 springernature / hasbin / test / unit / lib / hasbin.js View on Github external
it('should return `true` if a matching binary is found', function () {
			assert.isTrue(passingResult);
		});
github springernature / hasbin / test / unit / lib / hasbin.js View on Github external
it('should callback with `true` if a matching binary is found', function () {
			assert.isTrue(passingResult);
		});
github rowanmanning / cuff / test / unit / cuff.js View on Github external
it('should call the expected control with the given element', function () {
            var el = createDomElement();
            var ctrl = {};
            cuff.controls.foo = sinon.stub().returns(ctrl);
            cuff.controls.bar = sinon.spy();
            cuff.bind(el, 'foo');
            assert.isTrue(cuff.controls.foo.withArgs(el).calledOnce);
            assert.isFalse(cuff.controls.bar.called);
        });
github pa11y / pa11y / test / unit / pa11y.js View on Github external
pa11y.sniff(opts, function () {
				assert.isTrue(reporter.begin.calledOnce, 'begin');
				assert.isTrue(reporter.log.called, 'log');
				assert.isTrue(reporter.handleResult.calledOnce, 'handleResult');
				assert.isTrue(reporter.end.calledOnce, 'end');
				done();
			});
		});
github rowanmanning / asynchronize / test / unit / asynchronize.js View on Github external
nextTick(function () {
                    assert.isTrue(callback.withArgs(undefined, 'bar').calledOnce);
                    done();
                });
            });

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