File: test/test.single.js

Recommend this page to a friend!
  Classes of Javier Camelis   Qlite   test/test.single.js   Download  
File: test/test.single.js
Role: Unit test script
Content type: text/plain
Description: Unit test script
Class: Qlite
Processes conditions asynchronously using promises
Author: By
Last change: Update of test/test.single.js
Date: 2 years ago
Size: 294 bytes
 

Contents

Class file image Download
QUnit.test( "simple Defer", function( assert ) { var defer = Q.defer(); var actual = false; defer.then(function () { actual = true; }); assert.ok(!actual, "Not triggered yet!"); defer.resolve(); assert.ok(actual, "Already triggered"); });