Skip to content

armgit / mocha

Public Imported from GitHub
0

☕️ Classic, reliable, trusted test framework for Node.js and the browser

Fix browser tests

John Firebaugh2ca206fa86cd
diff --git a/test/browser/opts.html b/test/browser/opts.html
index 7798481a..efbe16ca 100644
--- a/test/browser/opts.html
+++ b/test/browser/opts.html
@@ -7,7 +7,7 @@
<script>
mocha.setup({
ui: 'bdd',
- globals: ['okGlobalA', 'okGlobalB'],
+ globals: ['okGlobalA', 'okGlobalB', 'okGlobalC', 'callback*'],
timeout: 1500
})
</script>
diff --git a/test/browser/opts.js b/test/browser/opts.js
index f32b8be3..dbbc9ff1 100644
--- a/test/browser/opts.js
+++ b/test/browser/opts.js
@@ -1,5 +1,5 @@
describe('Options', function() {
it('should set timeout value', function() {
- assert(this._test._timeout === 1500);
+ assert(this.test._timeout === 1500);
});
})