What the fuck is the point? I mean, fucking really?
insert: function () {
var items = dao.getItems();
assert.isArray(items, "Items was not an array");
assert.isTrue(items.length < 1,"Items had 1 or more items.");
dao.addItem("Test", "test", 0, function() {
var items = dao.getItems();
assert.isArray(items, "Items was not an array");
assert.isTrue(items.length === 1,"Items did not contain one item.");
});
}
What the fuck is wrong with doing database sync by default? When do you EVER want async inserts and retrieves? There isn't even a insertSync method in the fucking library!