Skip to content

Commit

Permalink
fix(eslint): hides global variable warnings (#2448)
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
gintsgints authored and Awk34 committed Jan 8, 2017
1 parent 501f111 commit 6aae4f5
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions templates/app/server/api/user(auth)/index.spec.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
'use strict';

/* globals sinon, describe, expect, it */

var proxyquire = require('proxyquire').noPreserveCache();

var userCtrlStub = {
Expand Down
2 changes: 2 additions & 0 deletions templates/app/server/api/user(auth)/user.integration.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
'use strict';

/* globals describe, expect, it, before, after, beforeEach, afterEach */

import app from '../..';<% if (filters.mongooseModels) { %>
import User from './user.model';<% } %><% if (filters.sequelizeModels) { %>
import {User} from '../../sqldb';<% } %>
Expand Down
2 changes: 2 additions & 0 deletions templates/endpoint/basename.integration.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
'use strict';

/* globals describe, expect, it, beforeEach, afterEach */

var app = require('<%= relativeRequire('server') %>');
import request from 'supertest';<% if(filters.models) { %>

Expand Down
2 changes: 2 additions & 0 deletions templates/endpoint/index.spec.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
'use strict';

/* globals sinon, describe, expect, it */

var proxyquire = require('proxyquire').noPreserveCache();

var <%= cameledName %>CtrlStub = {
Expand Down

0 comments on commit 6aae4f5

Please sign in to comment.