Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Tidied up source structure

  • Loading branch information...
commit 747a0bc6cb3026eb1bc5bb4223e13fa8991b3288 1 parent a3cfb17
@bebraw authored
View
0  tests/bunit.js → lib/bunit.js
File renamed without changes
View
0  tests/require.js → lib/require.js
File renamed without changes
View
0  tests/utils.js → lib/utils.js
File renamed without changes
View
14 main.js
@@ -0,0 +1,14 @@
+require(
+ {
+ paths: {
+ bunit: 'lib/bunit',
+ utils: 'lib/utils'
+ }
+ },
+ ['bunit', 'tests/tests'],
+ function(bunit, tests) {
+ require.ready(function() {
+ bunit.defaultUI(tests);
+ });
+ }
+);
View
2  runtests.html
@@ -3,7 +3,7 @@
<title>Tests</title>
<link rel="stylesheet" type="text/css" href="css/main.css" />
- <script data-main="tests/main" src="tests/require.js"></script>
+ <script data-main="main" src="lib/require.js"></script>
</head>
<body>
</body>
View
7 tests/main.js
@@ -1,7 +0,0 @@
-require(['bunit', 'tests'],
- function(bunit, tests) {
- require.ready(function() {
- bunit.defaultUI(tests);
- });
- }
-);
View
2  tests/tests.js
@@ -1,4 +1,4 @@
-define(['color'], function(color) {
+define(['./color'], function(color) {
return {
color: color
};
Please sign in to comment.
Something went wrong with that request. Please try again.