Sha256: 14330f7e2354d1992556d117da5e1fa4b2cbe87df0f2c134a2f4e97819efd3ef
Contents?: true
Size: 883 Bytes
Versions: 9
Compression:
Stored size: 883 Bytes
Contents
describe('Factory: BstBookmark', function() { var $httpBackend, bookmarks, BstBookmark; beforeEach(module('Bastion', 'Bastion.components')); beforeEach(module(function() { bookmarks = { results: [{name:"search1", controller:"controller1", query:"name = ak1", public:null}], total: 1, subtotal: 1 }; })); beforeEach(inject(function($injector) { $httpBackend = $injector.get('$httpBackend'); BstBookmark = $injector.get('BstBookmark'); })); it('provides a way to create a bookmark', function() { $httpBackend.expectPOST('/api/v2/bookmarks').respond(bookmarks.results[0]); BstBookmark.create(function(bookmarks) { expect(response).toBeDefined(); }); }); });
Version data entries
9 entries across 9 versions & 1 rubygems