Skip to content

Commit 965da7f

Browse files
committed
fix lint
1 parent f174370 commit 965da7f

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

Diff for: templates/app/client/app/app.module.js

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import {
22
NgModule,
3-
Injectable,
4-
ApplicationRef,<% if(filters.ts || filters.flow) { %>
5-
Provider,<% } %>
3+
ApplicationRef,
64
} from '@angular/core';
75
import { BrowserModule } from '@angular/platform-browser';
86
import { HttpClientModule } from '@angular/common/http';
@@ -23,8 +21,6 @@ import { JwtModule } from '@auth0/angular-jwt';
2321
import { AccountModule } from './account/account.module';
2422
import { AdminModule } from './admin/admin.module';<% } %>
2523

26-
import constants from './app.constants';
27-
2824
export function tokenGetter() {
2925
return localStorage.getItem('id_token');
3026
}

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ describe('Component: MainComponent', function() {
4848

4949
it('should attach a list of things to the controller', () => {
5050
// `GET /api/things` should be made once
51-
const req = httpTestingController.expectOne('/api/things');
52-
<% if(filters.jasmine) { %>expect(req.request.method).toEqual('GET');<% } else if(filters.mocha) { %>
51+
const req = httpTestingController.expectOne('/api/things');<% if(filters.jasmine) { %>
52+
expect(req.request.method).toEqual('GET');<% } else if(filters.mocha) { %>
5353
<%= expect() %>req.request.method<%= to() %>.equal('GET');<% } %>
5454

5555
// Respond with mock data
@@ -58,7 +58,7 @@ describe('Component: MainComponent', function() {
5858
// assert that there are no outstanding requests
5959
httpTestingController.verify();
6060

61-
<% if(filters.jasmine) { %>expect(comp.awesomeThings).toEqual(mockThings);<% } else if(filters.mocha) { %>
61+
<%_ if(filters.jasmine) { -%>expect(comp.awesomeThings).toEqual(mockThings);<%_ } else if(filters.mocha) { -%>
6262
<%= expect() %>comp.awesomeThings<%= to() %>.equal(mockThings);<% } %>
6363
});
6464
});

0 commit comments

Comments
 (0)