Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/mocha-3.1.2/test/acceptance/interfaces/qunit.spec.js')
-rw-r--r--tests/lib/mocha-3.1.2/test/acceptance/interfaces/qunit.spec.js25
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/lib/mocha-3.1.2/test/acceptance/interfaces/qunit.spec.js b/tests/lib/mocha-3.1.2/test/acceptance/interfaces/qunit.spec.js
new file mode 100644
index 0000000000..0d15272f0b
--- /dev/null
+++ b/tests/lib/mocha-3.1.2/test/acceptance/interfaces/qunit.spec.js
@@ -0,0 +1,25 @@
+'use strict';
+
+function ok (expr, msg) {
+ if (!expr) throw new Error(msg);
+}
+
+suite('integer primitives');
+
+test('should add', function () {
+ var number = 2 + 2;
+ ok(number === 4);
+});
+
+test('should decrement', function () {
+ var number = 3;
+ ok(--number === 2);
+ ok(--number === 1);
+ ok(--number === 0);
+});
+
+suite('String');
+
+test('#length', function () {
+ ok('foo'.length === 3);
+});