1
+ /*jshint globalstrict: true*/
1
2
'use strict' ;
2
3
3
- var Promise = require ( 'ember-cli/lib/ext/promise' ) ;
4
4
var assert = require ( 'ember-cli/tests/helpers/assert' ) ;
5
- var fs = require ( 'fs' ) ;
6
- var path = require ( 'path' ) ;
7
5
8
6
describe ( 'ssh-tunnel plugin' , function ( ) {
9
7
var subject , mockUi ;
@@ -77,7 +75,7 @@ describe('ssh-tunnel plugin', function() {
77
75
config : config
78
76
} ;
79
77
plugin . beforeHook ( context ) ;
80
- assert . throws ( function ( error ) {
78
+ assert . throws ( function ( ) {
81
79
plugin . configure ( context ) ;
82
80
} ) ;
83
81
var messages = mockUi . messages . reduce ( function ( previous , current ) {
@@ -117,7 +115,7 @@ describe('ssh-tunnel plugin', function() {
117
115
host : 'example.com' ,
118
116
username : 'ghedamat'
119
117
}
120
- }
118
+ } ;
121
119
context = {
122
120
ui : mockUi ,
123
121
config : config
@@ -147,11 +145,11 @@ describe('ssh-tunnel plugin', function() {
147
145
username : 'example' ,
148
146
password : 'secret'
149
147
}
150
- }
148
+ } ;
151
149
context = {
152
150
ui : mockUi ,
153
151
config : config
154
- }
152
+ } ;
155
153
plugin . beforeHook ( context ) ;
156
154
plugin . configure ( context ) ;
157
155
assert . isDefined ( config [ 'ssh-tunnel' ] . password ) ;
@@ -165,11 +163,11 @@ describe('ssh-tunnel plugin', function() {
165
163
username : 'example' ,
166
164
privateKeyPath : '~/.ssh/id_rsa'
167
165
}
168
- }
166
+ } ;
169
167
context = {
170
168
ui : mockUi ,
171
169
config : config
172
- }
170
+ } ;
173
171
plugin . beforeHook ( context ) ;
174
172
plugin . configure ( context ) ;
175
173
assert . isUndefined ( config [ 'ssh-tunnel' ] . password ) ;
@@ -180,8 +178,7 @@ describe('ssh-tunnel plugin', function() {
180
178
} ) ;
181
179
182
180
describe ( 'setup hook' , function ( ) {
183
- var plugin ;
184
- var context ;
181
+ var plugin , context ;
185
182
186
183
beforeEach ( function ( ) {
187
184
plugin = subject . createDeployPlugin ( {
@@ -222,8 +219,7 @@ describe('ssh-tunnel plugin', function() {
222
219
} ) ;
223
220
224
221
describe ( 'teardown hook' , function ( ) {
225
- var plugin ;
226
- var context ;
222
+ var plugin , context ;
227
223
228
224
beforeEach ( function ( ) {
229
225
plugin = subject . createDeployPlugin ( {
@@ -250,7 +246,7 @@ describe('ssh-tunnel plugin', function() {
250
246
}
251
247
} ;
252
248
253
- var result = plugin . teardown ( context ) ;
249
+ plugin . teardown ( context ) ;
254
250
} ) ;
255
251
} ) ;
256
252
} ) ;
0 commit comments