Skip to content

Commit f2260a9

Browse files
committed
Fix up unit tests.
1 parent 1b64dcf commit f2260a9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spec/stacktrace-spec.coffee

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,13 +149,14 @@ describe 'Stacktrace', ->
149149
expect(frame).toBeNull()
150150

151151
describe 'Frame', ->
152+
[frame, fixturePath] = []
152153

153154
beforeEach ->
154155
fixturePath = path.join __dirname, 'fixtures', 'context.txt'
156+
frame = new Frame('five', fixturePath, 5, 'something')
155157

156158
it 'acquires n lines of context asynchronously', ->
157159
[lines, traceLine] = []
158-
frame = new Frame('five', fixturePath, 5, 'something')
159160

160161
frame.getContext 2, (err, ls, lnum) ->
161162
throw err if err?

0 commit comments

Comments
 (0)