Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- it('should enter the assertion', inject(
- [ MockBackend, CellService ],
- ( backend: MockBackend, s: CellService ) => {
- const urls = [];
- backend.connections.subscribe((connection: MockConnection) => {
- const req = connection.request;
- urls.push(req.url);
- if (req.method === RequestMethod.Get && req.url === '/api/getTest') {
- connection.mockRespond(new Response(new ResponseOptions('enter mocked content')));
- }
- });
- s.getCell('powders').subscribe(val => expect(true).toBeFalsy())
- })
- );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement