Files
website/test/test_helper.coffee
T
Andrew Miner 873434e938 Refactoring tests and moving code to common module
1. All tests have been converted into regular command-line mocha
   tests (instead of running in the browser), and the deployment
   script has been changed to automatically fail any `--new`
   deployment which doesn't pass.
2. Several small class (e.g., `Logger`) have been moved into a common
   module, `crafting-guide-common` so that they may be shared between
   the client and server.
2015-03-25 14:42:15 -07:00

27 lines
719 B
CoffeeScript

###
# Crafting Guide - test.coffee
#
# Copyright (c) 2014-2015 by Redwood Labs
# All rights reserved.
###
# Test Set-up ##########################################################################################################
chai = require 'chai'
chai.use require 'sinon-chai'
chai.config.includeStack = true
global._ = require 'underscore'
global.Backbone = require 'backbone'
global.assert = chai.assert
global.expect = chai.expect
global.should = chai.should()
global.util = require 'util'
global.w = require 'when'
{Logger} = require 'crafting-guide-common'
global.logger = new Logger level:Logger.FATAL
require '../src/coffee/polyfill'
require '../src/coffee/underscore_mixins'