Skip to content

Commit

Permalink
补充测试文件
Browse files Browse the repository at this point in the history
  • Loading branch information
zswang committed Dec 22, 2014
1 parent ff7795c commit 4a34a76
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 13 deletions.
39 changes: 28 additions & 11 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,13 +1,30 @@
# Logs
logs
*.log

# vim
*.sw[a-z]
vim/.netrwhist

# temp
.DS_Store
*.db
*.bak
*.tmp
*.cmd
~*

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release

# Dependency directory
# Deployed apps should consider commenting this line out:
# see https://npmjs.org/doc/faq.html#Should-I-check-my-node_modules-folder-into-git
node_modules
.tmp
.sass-cache
.idea
.markdowns
client/bower_components
lib
test.html
.DS_Store
cache.manifest
_draft/
npm-debug.log
release/
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "alogs",
"version": "0.1.3",
"version": "0.1.4",
"homepage": "https://github.com/fex-team/alogs",
"description": "The front-end log collection module management",
"authors": [
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "alogs",
"version": "0.1.3",
"version": "0.1.4",
"description": "The front-end log collection module management",
"author": "zswang<jihu.wang@gmail.com>",
"main": "index.js",
Expand Down
27 changes: 27 additions & 0 deletions test/test.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<html>
<head>
<title>Tests Passing</title>
<meta charset="utf-8">
<link rel="stylesheet" href="../node_modules/mocha/mocha.css" />
</head>
<body>
<div id="mocha"></div>
<script src="../node_modules/mocha/mocha.js"></script>
<script src="../node_modules/chai/chai.js"></script>
<script>
mocha.ui('bdd');
mocha.reporter('html');
expect = chai.expect;
</script>
<script src="../src/alog.js"></script>
<script src="setup.js"></script>
<script src="test.js"></script>
<script>
if (window.mochaPhantomJS) {
mochaPhantomJS.run();
} else {
mocha.run();
}
</script>
</body>
</html>

0 comments on commit 4a34a76

Please sign in to comment.