Skip to content
This repository has been archived by the owner on Apr 24, 2022. It is now read-only.

Add QUnit style #7

Open
munierujp opened this issue Aug 31, 2018 · 1 comment
Open

Add QUnit style #7

munierujp opened this issue Aug 31, 2018 · 1 comment

Comments

@munierujp
Copy link
Member

like this:

function ok(expr, msg) {
  if (!expr) throw new Error(msg);
}

suite('Array');

test('#length', function() {
  var arr = [1,2,3];
  ok(arr.length == 3);
});

test('#indexOf()', function() {
  var arr = [1,2,3];
  ok(arr.indexOf(1) == 0);
  ok(arr.indexOf(2) == 1);
  ok(arr.indexOf(3) == 2);
});

suite('String');

test('#length', function() {
  ok('foo'.length == 3);
});
@munierujp munierujp mentioned this issue Aug 31, 2018
4 tasks
@munierujp munierujp self-assigned this Sep 13, 2018
@munierujp
Copy link
Member Author

munierujp commented Sep 13, 2018

I'll do this.

@munierujp munierujp removed their assignment Oct 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant