-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Made a big refactoring: wrap the whole function into an AMD (require.…
…js). Devidet the functions in extra modules. They work fine together, but have got the problem that has() and is() will not go into global when assert is loaded, this should they do. its useless, when i have to load has or is next to assert, thats boring
- Loading branch information
1 parent
b5fb235
commit 8674849
Showing
26 changed files
with
5,275 additions
and
944 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/** | ||
* Config area for client-assertthat | ||
* for questions of configuration have a look to: http://requirejs.org/docs/api.html | ||
* | ||
* did not realy know if i will realy need jquery, hope not | ||
* | ||
* Created by | ||
* @author Maximilian Berghoff | ||
*/ | ||
|
||
require.config({ | ||
baseUrl: "", | ||
paths: { | ||
assert: 'lib/assert', | ||
jquery: 'lib/jquery/jquery', | ||
mocha: 'lib/mocha/mocha', | ||
is:'lib/is', | ||
has:'lib/has' | ||
}, | ||
shim:{ | ||
mocha:{ | ||
deps:['jquery'] | ||
|
||
} | ||
} | ||
}); | ||
|
||
/** | ||
* define your test in here | ||
*/ | ||
require(['require','mocha'],function(require){ | ||
mocha.setup('tdd'); | ||
require([ | ||
'test/has/attribute' | ||
],function(require){ | ||
mocha.run(); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>Client-Assertthat</title> | ||
<link rel="stylesheet" type="text/css" href="css/mocha.css" /> | ||
</head> | ||
|
||
<body> | ||
<div id="mocha"></div> | ||
<script type="text/javascript" src="lib/require/require.js" data-main="config"></script> | ||
</body> | ||
</html> |
Oops, something went wrong.