You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 10, 2022. It is now read-only.
Hi Am trying to generate pacts consumer contracts. Am trying invoke an angular service which makes a simple xmlhttprequest.
and before each, I have below code
angular.module('modulename', [
'component',
'ngMockE2E'
]);
But when I run karma test task to generate pact it simply exits after "putInteractions" method.
But contracts file is not generated. when I hit the service from browser or postman I get
{"message":"No interaction found for GET /search","interaction_diffs":[]}
I tried putting console loggers inside pact-consumer-js-dsl.js. it simply exits after putInteractions method. no errors found!
am using Karma,Jasmine, AngularJs, pact_node(for pact server).
Could you please help me out...
The text was updated successfully, but these errors were encountered:
Hi Am trying to generate pacts consumer contracts. Am trying invoke an angular service which makes a simple xmlhttprequest.
and before each, I have below code
angular.module('modulename', [
'component',
'ngMockE2E'
]);
tester = ngMidwayTester('modulename');
customService = tester.inject('serviceToBeInjected');
$httpBackend = tester.inject('$httpBackend');
$httpBackend.whenGET('/search').passThrough();
But when I run karma test task to generate pact it simply exits after "putInteractions" method.
But contracts file is not generated. when I hit the service from browser or postman I get
{"message":"No interaction found for GET /search","interaction_diffs":[]}
I tried putting console loggers inside pact-consumer-js-dsl.js. it simply exits after putInteractions method. no errors found!
am using Karma,Jasmine, AngularJs, pact_node(for pact server).
Could you please help me out...
The text was updated successfully, but these errors were encountered: