Skip to content

Commit

Permalink
cleanup, let test-browser run without webserver
Browse files Browse the repository at this point in the history
  • Loading branch information
Gottox committed May 20, 2013
1 parent fe0811b commit 13da259
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 14 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ test:
test-browser: build-dev
@mkdir -p test/dist
@cp dist/* test/dist
@./node_modules/.bin/serve test/
@echo visit file://$(PWD)/test/index.html

clean:
@rm -r dist/* test/dist
Expand Down
4 changes: 2 additions & 2 deletions dist/urlify-dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ var accents = {
'Â': 'A',
'Ã': 'A',
'Ä': 'A',
'Å': 'AA',
'Å': 'A',
'Æ': 'AE',
'Ç': 'C',
'È': 'E',
Expand Down Expand Up @@ -204,7 +204,7 @@ var accents = {
'â': 'a',
'ã': 'a',
'ä': 'a',
'å': 'aa',
'å': 'a',
'æ': 'ae',
'ç': 'c',
'è': 'e',
Expand Down
4 changes: 2 additions & 2 deletions dist/urlify.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ var accents = {
'Â': 'A',
'Ã': 'A',
'Ä': 'A',
'Å': 'AA',
'Å': 'A',
'Æ': 'AE',
'Ç': 'C',
'È': 'E',
Expand Down Expand Up @@ -83,7 +83,7 @@ var accents = {
'â': 'a',
'ã': 'a',
'ä': 'a',
'å': 'aa',
'å': 'a',
'æ': 'ae',
'ç': 'c',
'è': 'e',
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
},
"devDependencies": {
"mocha": "*",
"serve": "*",
"expect.js": "*",
"browserbuild": "*"
},
Expand Down
2 changes: 0 additions & 2 deletions test/foo.js

This file was deleted.

13 changes: 7 additions & 6 deletions test/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,21 @@
<html>
<head>
<title>urlify tests</title>
<link rel="stylesheet" href="/support/mocha.css" media="all">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" href="support/mocha.css" media="all">

<script src="/dist/urlify-dev.js"></script>
<script src="dist/urlify-dev.js"></script>

<script src="/support/jquery.js"></script>
<script src="/support/expect.js"></script>
<script src="/support/mocha.js"></script>
<script src="support/jquery.js"></script>
<script src="support/expect.js"></script>
<script src="support/mocha.js"></script>
<script>
var urlify = Urlify;
mocha.setup('bdd');
</script>

<!-- tests -->
<script src="/main.js"></script>
<script src="main.js"></script>

<script>window.onload = mocha.run;</script>
</head>
Expand Down

0 comments on commit 13da259

Please sign in to comment.