Skip to content

Commit 3989340

Browse files
committed
fix main test
1 parent 47d238a commit 3989340

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: templates/app/client/app/main/main.component.spec.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ describe('Component: MainComponent', function() {
4949
it('should attach a list of things to the controller', () => {
5050
// `GET /api/things` should be made once
5151
const req = httpTestingController.expectOne('/api/things');
52-
expect(req.request.method).to.equal('GET');
52+
<% if(filters.jasmine) { %>expect(req.request.method).toEqual('GET');<% } else if(filters.mocha) { %>
53+
<%= expect() %>req.request.method<%= to() %>.equal('GET');<% } %>
5354

5455
// Respond with mock data
5556
req.flush(mockThings);

0 commit comments

Comments
 (0)