Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
describe('FlickrService', () => {
var service, $httpBackend;
beforeEach(() => { angular.mock.module(appName); });
beforeEach(mocks.default.inject((_$httpBackend_, _FlickrService_) => {
service = _FlickrService_;
$httpBackend = _$httpBackend_;
$httpBackend.whenJSONP(/http:\/\/api.flickr.com/)
.respond({
"title": "Fake response",
"link": "http://fakelink.com",
"description": "",
"modified": "1970-01-01T01:01:01Z",
"generator": "FakeGenerator",
"items": [
{
"title": "TEST",
"link": "http://FakeImageLing",
"media": {"m":"http://fakeImage.jpg"},
"date_taken": "1970-01-01T12:05:34-08:00",