Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    jasmine-asyncpublic

    Allows jasmine.async to be used in Node.js as an NPM module.
    

    Install:

    	npm install jasmine.async
    

    Usage:

    var AsyncSpec = require('jasmine.async')(jasmine);
    
    describe('After one second', function() {
    	var async =  new AsyncSpec(this);
    	async.it('it should check that 1 equals 1.', function(done) {
    		setTimeout(function() {
    			expect(1).toEqual(1);
    			done();
    		}, 1000);
    	});
    });
    
    Once included just run your Jasmine tests as you always did. 

    Keywords

    none

    install

    npm i jasmine-async

    Downloadsweekly downloads

    84

    version

    0.0.1

    license

    none

    repository

    github.com

    last publish

    collaborators

    • avatar