Skip to content
Browse files

make clear that you can use jquery for async answers

  • Loading branch information...
1 parent c695be6 commit 4bf0695ea541756d0e6e50705b2ad268444d4e88 @rmurphey committed Jul 29, 2012
Showing with 3 additions and 3 deletions.
  1. +2 −2 app/async.js
  2. +1 −1 tests/app/async.js
View
4 app/async.js
@@ -1,8 +1,8 @@
if (typeof define !== 'function') { var define = require('amdefine')(module); }
-define(function() {
+define([ 'jquery' ], function($) {
return {
- async : function() {
+ async : function(value) {
},
View
2 tests/app/async.js
@@ -5,7 +5,7 @@ define([
it("you should understand how to use 'promises'", function(done) {
var flag = false;
- answers.async().then(function(result) {
+ answers.async(true).then(function(result) {
flag = result;
expect(flag).to.be(true);
done();

0 comments on commit 4bf0695

Please sign in to comment.
Something went wrong with that request. Please try again.