\b((25[0-5]|2[0-4]\d|[0-1]?\d?\d)(\.(25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3})\b
\bM{0,4}(CM|CD|D?C{0,3})(XC|XL|L?X{0,3})(IX|IV|V?I{0,3})\b
Roman numerals
describe("isIpv4()", function() { it("should ...", function(){ }); });
{ data: { fsrf: false, versions: {
"0": { variableInfo: { header: "Foo", executions: [
{id: 1, code: "F0103A"},
{id: 2, code: "F0105C"},
{id: 3, code: null}],
imageUrls: ["http://example.com/img/763498087376276l.jpg"]}}
}}};
{
title: "Foo",
executions: ["F0103A", "F0105C"],
imgUrl: "http://example.com/img/763498087376276.jpg"
}
describe("#transformData", function(){ it("should ...", function(){}); });
setTimeout(function() { return "value"; }, 500);
App.Module.find = function() { };
var spy = sinon.spy();
var spy = sinon.spy(function);
var spy = sinon.spy(object, "method");
spy.getCall(0).args[0];
spy.called[Count|Once|Twice|Thrice] // true|false
spy.calledWith();
var ajax = sinon.stub(jQuery, 'ajax');
sinon.promise = function() {
var promise = {
then: sinon.stub(),
done: sinon.stub(),
fail: sinon.stub(),
always: sinon.stub()
};
promise.then.returns(promise);
promise.done.returns(promise);
promise.fail.returns(promise);
promise.always.returns(promise);
return promise;
};
expect("presentation").to.be.complete();