Commit b1817f15 authored by Robert Knight's avatar Robert Knight Committed by Nick Stenning

Fix missing var declarations

These files were converted from CoffeeScript and 'use strict'
was never added.
parent edc2681a
......@@ -38,21 +38,21 @@ describe('h', function () {
var identity = 'fake-identity';
fakeJwtHelper.isTokenExpired.withArgs(identity).returns(false);
fakeJwtHelper.decodeToken.withArgs(identity).returns({sub: 'pandora'});
userid = auth.userid(identity);
var userid = auth.userid(identity);
assert.equal(userid, 'pandora');
});
it('returns null for an expired jwt', function () {
var identity = 'fake-identity';
fakeJwtHelper.isTokenExpired.withArgs(identity).returns(true);
userid = auth.userid(identity);
var userid = auth.userid(identity);
assert.isNull(userid);
});
it('returns null for an invalid jwt', function () {
var identity = 'fake-identity';
fakeJwtHelper.decodeToken.withArgs(identity).throws('Error');
userid = auth.userid(identity);
var userid = auth.userid(identity);
assert.isNull(userid);
});
});
......@@ -33,9 +33,11 @@ inherits(FakeSocket, EventEmitter);
describe('streamer', function () {
var fakeAnnotationMapper;
var fakeGroups;
var fakeRootScope;
var fakeSession;
var fakeSettings;
var activeStreamer;
var streamer;
function createDefaultStreamer() {
activeStreamer = streamer.connect(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment