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.
27 lines
719 B
CoffeeScript
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'
|