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.
This commit is contained in:
@@ -32,5 +32,5 @@
|
||||
.action
|
||||
iframe(src="http://ghbtns.com/github-btn.html?user=andrewminer&repo=crafting-guide&type=fork&size=large",
|
||||
allowtransparency="true", frameborder="0", scrolling="0", width="100", height="32")
|
||||
a(href="/test.html", rel="nofollow")
|
||||
.divider.bottom
|
||||
|
||||
.divider.bottom
|
||||
|
||||
@@ -1,35 +0,0 @@
|
||||
//-
|
||||
//- Crafting Guide - test.jade
|
||||
//-
|
||||
//- Copyright (c) 2014-2015 by Redwood Labs
|
||||
//- All rights reserved.
|
||||
//-
|
||||
|
||||
doctype html
|
||||
html
|
||||
head
|
||||
title Crafting Guide Unit Tests
|
||||
meta(charset="UTF-8")
|
||||
link(href="/images/favicon.png", rel="icon", type="image/png")
|
||||
|
||||
block styles
|
||||
link(rel="stylesheet", type="text/css", href="/css/main.css")
|
||||
link(rel="stylesheet", type="text/css", href="css/mocha.css")
|
||||
style #mocha-stats { position: absolute; top: 12em; }
|
||||
|
||||
body
|
||||
block body
|
||||
.view__feedback
|
||||
.view__screen
|
||||
|
||||
.content
|
||||
include ./includes/_header.jade
|
||||
.page
|
||||
#mocha
|
||||
include ./includes/_footer.jade
|
||||
|
||||
block scripts
|
||||
include ./includes/_standard_scripts.jade
|
||||
script(src="/js/mocha.js")
|
||||
script(src="/js/chai.js")
|
||||
script(src="/js/test.js")
|
||||
Reference in New Issue
Block a user