Skip to content

Instantly share code, notes, and snippets.

@lin7sh
Created November 10, 2015 04:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lin7sh/66a734397613c73883cb to your computer and use it in GitHub Desktop.
Save lin7sh/66a734397613c73883cb to your computer and use it in GitHub Desktop.
(function() {
'use strict'
let QUnit = global.QUnit = require('qunitjs')
let qe = require('qunit-extras')
qe.runInContext(global)
QUnit.module('Math')
QUnit.test('pow', function(assert) {
let result = Math.pow(2, 2)
assert.ok(result, 4, '2 ** 2 is 4')
})
QUnit.load()
}.call(this))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment