Permalink
Browse files

Clean up mocha BDD instantiation

  • Loading branch information...
1 parent 0768b4a commit 0b1e4039daa1f59a240b817239512727dce16e90 @ericclemmons committed Mar 27, 2013
Showing with 5 additions and 9 deletions.
  1. +1 −9 test/index.html
  2. +4 −0 test/unique-selector.js
View
@@ -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>
View
@@ -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() {

0 comments on commit 0b1e403

Please sign in to comment.