Lines Matching refs:load
405 'load() should delegate to sync()': function () {
420 list.load(opts);
424 'load() should be chainable and should call the callback if one was provided': function () {
428 Assert.areSame(list, list.load());
429 Assert.areSame(list, list.load({}));
431 Assert.areSame(list, list.load(function (err) {
436 Assert.areSame(list, list.load({}, function () {
443 'load() should reset the list with the loaded items': function () {
453 list.load(function (err) {
456 Assert.isNull(err, 'load error should be null');
465 'load() callback should receive an error when a sync error occurs': function () {
473 list.load(function (err) {
908 '`load` event should fire after a successful load operation': function () {
912 list.on('load', function (e) {
925 list.load(function () {
926 Assert.areSame(1, calls, 'load event should fire before the callback runs');
929 Assert.areSame(1, calls, 'load event never fired');