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 () { ...@@ -38,21 +38,21 @@ describe('h', function () {
var identity = 'fake-identity'; var identity = 'fake-identity';
fakeJwtHelper.isTokenExpired.withArgs(identity).returns(false); fakeJwtHelper.isTokenExpired.withArgs(identity).returns(false);
fakeJwtHelper.decodeToken.withArgs(identity).returns({sub: 'pandora'}); fakeJwtHelper.decodeToken.withArgs(identity).returns({sub: 'pandora'});
userid = auth.userid(identity); var userid = auth.userid(identity);
assert.equal(userid, 'pandora'); assert.equal(userid, 'pandora');
}); });
it('returns null for an expired jwt', function () { it('returns null for an expired jwt', function () {
var identity = 'fake-identity'; var identity = 'fake-identity';
fakeJwtHelper.isTokenExpired.withArgs(identity).returns(true); fakeJwtHelper.isTokenExpired.withArgs(identity).returns(true);
userid = auth.userid(identity); var userid = auth.userid(identity);
assert.isNull(userid); assert.isNull(userid);
}); });
it('returns null for an invalid jwt', function () { it('returns null for an invalid jwt', function () {
var identity = 'fake-identity'; var identity = 'fake-identity';
fakeJwtHelper.decodeToken.withArgs(identity).throws('Error'); fakeJwtHelper.decodeToken.withArgs(identity).throws('Error');
userid = auth.userid(identity); var userid = auth.userid(identity);
assert.isNull(userid); assert.isNull(userid);
}); });
}); });
...@@ -33,9 +33,11 @@ inherits(FakeSocket, EventEmitter); ...@@ -33,9 +33,11 @@ inherits(FakeSocket, EventEmitter);
describe('streamer', function () { describe('streamer', function () {
var fakeAnnotationMapper; var fakeAnnotationMapper;
var fakeGroups; var fakeGroups;
var fakeRootScope;
var fakeSession; var fakeSession;
var fakeSettings; var fakeSettings;
var activeStreamer; var activeStreamer;
var streamer;
function createDefaultStreamer() { function createDefaultStreamer() {
activeStreamer = streamer.connect( 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