Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Clean up mocha BDD instantiation
  • Loading branch information
ericclemmons committed Mar 27, 2013
1 parent 0768b4a commit 0b1e403
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
10 changes: 1 addition & 9 deletions test/index.html
Expand Up @@ -5,15 +5,7 @@
<link rel="stylesheet" href="../node_modules/mocha/mocha.css" />
<script src="../node_modules/mocha/mocha.js"></script>
<script>
mocha.setup({
'ignoreLeaks' : true,
'ui' : 'bdd'
});
</script>
<script>
function assert(expr, msg) {
if (!expr) throw new Error(msg || 'failed');
}
mocha.setup('bdd');
</script>
</head>
<body>
Expand Down
4 changes: 4 additions & 0 deletions test/unique-selector.js
@@ -1,5 +1,9 @@
var unique = require('unique-selector');

function assert(expr, msg) {
if (!expr) throw new Error(msg || 'failed');
}

describe('unique-selector', function() {
describe('with undefined', function() {
it('should return a TypeError', function() {
Expand Down

0 comments on commit 0b1e403

Please sign in to comment.