Last change
on this file since 19:ab5f65372038 was 19:ab5f65372038, checked in by Borja Lopez <borja@…>, 9 years ago |
Imported latest envjasmine version, the initial import from darcs had the wrong version
|
File size:
269 bytes
|
Rev | Line | |
---|
[19] | 1 | // This is a demo of using jasmine in a callback!
|
---|
| 2 |
|
---|
| 3 | if (typeof(NS) === 'undefined' || !NS) {
|
---|
| 4 | var NS = {};
|
---|
| 5 | }
|
---|
| 6 |
|
---|
| 7 | NS.runIfTrevor = function (name, callback) {
|
---|
| 8 | if (name === 'Trevor') {
|
---|
| 9 | callback(name);
|
---|
| 10 | } else {
|
---|
| 11 | throw 'You aren\'t Trevor!';
|
---|
| 12 | }
|
---|
| 13 | };
|
---|
Note:
See
TracBrowser
for help on using the repository browser.