Commit 4c7dfada authored by Randall Leeds's avatar Randall Leeds

Remove sinon and chai boilerplate

parent 96047775
{inject, module} = require('angular-mock')
assert = chai.assert
sinon.assert.expose assert, prefix: null
describe 'h:AccountController', ->
$scope = null
fakeFlash = null
......
{inject, module} = require('angular-mock')
assert = chai.assert
sinon.assert.expose assert, prefix: null
sandbox = sinon.sandbox.create()
class MockSession
......
bb = require('../bucket-bar')
assert = chai.assert
sinon.assert.expose(assert, prefix: '')
describe 'Annotator.BucketBar', ->
createBucketBar = (options) ->
element = document.createElement('div')
......
CrossFrame = require('../cross-frame')
assert = chai.assert
sinon.assert.expose(assert, prefix: '')
describe 'Annotator.Plugin.CrossFrame', ->
fakeDiscovery = null
fakeBridge = null
......
Annotator = require('annotator')
Host = require('../host')
assert = chai.assert
sinon.assert.expose(assert, prefix: '')
describe 'Host', ->
sandbox = sinon.sandbox.create()
fakeCrossFrame = null
......
{module, inject} = require('angular-mock')
assert = chai.assert
sinon.assert.expose assert, prefix: null
describe 'match', ->
$compile = null
$element = null
......
......@@ -2,9 +2,6 @@ var angularMock = require('angular-mock');
var module = angularMock.module;
var inject = angularMock.inject;
var assert = chai.assert;
sinon.assert.expose(assert, {prefix: null});
describe('spinner', function () {
var $animate = null;
var $element = null
......
{module, inject} = require('angular-mock')
assert = chai.assert
sinon.assert.expose assert, prefix: null
describe 'thread', ->
$compile = null
$element = null
......
......@@ -11,7 +11,8 @@ module.exports = function(config) {
// available frameworks: https://npmjs.org/browse/keyword/karma-adapter
frameworks: [
'browserify',
'mocha'
'mocha',
'chai-sinon'
],
// list of files / patterns to load in the browser
......@@ -38,8 +39,6 @@ module.exports = function(config) {
// Test deps
'vendor/angular-mocks.js',
'vendor/sinon.js',
'vendor/chai.js',
'../../templates/client/*.html',
// Tests
......
{module, inject} = require('angular-mock')
assert = chai.assert
sinon.assert.expose(assert, prefix: '')
describe 'annotationMapper', ->
sandbox = sinon.sandbox.create()
......
{module, inject} = require('angular-mock')
assert = chai.assert
sinon.assert.expose(assert, prefix: '')
describe 'AnnotationSync', ->
sandbox = sinon.sandbox.create()
publish = null
......
{module, inject} = require('angular-mock')
assert = chai.assert
sinon.assert.expose assert, prefix: null
describe 'AnnotationUIController', ->
$scope = null
$rootScope = null
......
{module, inject} = require('angular-mock')
assert = chai.assert
sinon.assert.expose(assert, prefix: '')
describe 'AnnotationUISync', ->
sandbox = sinon.sandbox.create()
$digest = null
......
{module, inject} = require('angular-mock')
assert = chai.assert
sinon.assert.expose(assert, prefix: '')
describe 'annotationUI', ->
annotationUI = null
......
{inject, module} = require('angular-mock')
assert = chai.assert
describe "AnnotationViewerController", ->
before ->
......
{module, inject} = require('angular-mock')
assert = chai.assert
sinon.assert.expose assert, prefix: null
describe 'AppController', ->
$controller = null
$scope = null
......
{module, inject} = require('angular-mock')
assert = chai.assert
sinon.assert.expose assert, prefix: null
describe 'h', ->
fakeAnnotator = null
fakeIdentity = null
......
{module, inject} = require('angular-mock')
Channel = require('jschannel')
assert = chai.assert
sinon.assert.expose assert, prefix: null
describe 'Bridge', ->
sandbox = sinon.sandbox.create()
bridge = null
......
{module, inject} = require('angular-mock')
assert = chai.assert
sinon.assert.expose assert, prefix: null
describe 'CrossFrame', ->
sandbox = sinon.sandbox.create()
crossframe = null
......
{module, inject} = require('angular-mock')
assert = chai.assert
sinon.assert.expose assert, prefix: null
describe 'Discovery', ->
sandbox = sinon.sandbox.create()
fakeTopWindow = null
......
{module, inject} = require('angular-mock')
assert = chai.assert
sinon.assert.expose assert, prefix: null
describe 'host', ->
sandbox = null
host = null
......
{module, inject} = require('angular-mock')
assert = chai.assert
sinon.assert.expose assert, prefix: null
sandbox = sinon.sandbox.create()
describe 'identityProvider', ->
provider = null
mockInjectable = {}
......
{module, inject} = require('angular-mock')
assert = chai.assert
sinon.assert.expose assert, prefix: null
describe 'localStorage', ->
fakeWindow = null
sandbox = null
......
{module, inject} = require('angular-mock')
assert = chai.assert
sinon.assert.expose assert, prefix: null
describe 'h:permissions', ->
sandbox = null
fakeAuth = null
......
{module, inject} = require('angular-mock')
assert = chai.assert
sinon.assert.expose assert, prefix: null
describe 'searchFilter', ->
sandbox = null
searchFilter = null
......@@ -66,4 +63,3 @@ describe 'searchFilter', ->
assert.equal(result.any[1], 'john:doe')
assert.equal(result.any[2], 'hi-fi')
assert.equal(result.any[3], 'a:bc')
......@@ -2,10 +2,6 @@
var mock = require('angular-mock');
var assert = chai.assert;
sinon.assert.expose(assert, {prefix: null});
describe('h:session', function () {
var $httpBackend;
var fakeFlash;
......
{module, inject} = require('angular-mock')
assert = chai.assert
sinon.assert.expose assert, prefix: null
describe 'store', ->
$httpBackend = null
sandbox = null
......
{module, inject} = require('angular-mock')
assert = chai.assert
sinon.assert.expose assert, prefix: null
describe 'StreamController', ->
$controller = null
$scope = null
......
{module, inject} = require('angular-mock')
assert = chai.assert
sinon.assert.expose assert, prefix: null
describe 'streamer', ->
WebSocket = null
fakeSock = null
......
{module, inject} = require('angular-mock')
assert = chai.assert
sinon.assert.expose(assert, prefix: '')
describe 'Threading', ->
instance = null
......
{module, inject} = require('angular-mock')
assert = chai.assert
sinon.assert.expose(assert, prefix: '')
describe 'unicode', ->
unicode = null
......
{module, inject} = require('angular-mock')
assert = chai.assert
sinon.assert.expose assert, prefix: null
poem =
tiger: 'Tiger! Tiger! burning bright
In the forest of the night
......
{module, inject} = require('angular-mock')
assert = chai.assert
sinon.assert.expose assert, prefix: null
describe 'WidgetController', ->
$scope = null
fakeAnnotationMapper = null
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -25,15 +25,19 @@
"uglify-js": "^2.4.14"
},
"devDependencies": {
"chai": "^3.2.0",
"jscs": "^1.13.1",
"karma": "^0.12.17",
"karma-browserify": "^3.0.3",
"karma-chai-sinon": "^0.1.5",
"karma-cli": "0.0.4",
"karma-mocha": "^0.1.4",
"karma-ng-html2js-preprocessor": "^0.1.0",
"karma-phantomjs-launcher": "^0.1.4",
"mocha": "^1.20.1",
"phantomjs": "^1.9.7"
"phantomjs": "^1.9.7",
"sinon": "^1.15.4",
"sinon-chai": "^2.8.0"
},
"engines": {
"node": "0.10.x"
......
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