GASUnit icon indicating copy to clipboard operation
GASUnit copied to clipboard

Add QUnit style

Open munierujp opened this issue 7 years ago • 1 comments

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 avatar Aug 31 '18 16:08 munierujp

I'll do this.

munierujp avatar Sep 13 '18 14:09 munierujp