Skip to content

slytton/intro-to-jasmine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Initialize Jasmine: jasmine init

Add a lib directory in the project root with your .js files in it

For each project js file add a file to spec with the name of the file prepended with spec_:

lib/example.js
spec/spec_example.js
lib/example.js :
module.exports = {
  //code goes here
};
spec/spec_example.js :
var example = require(../lib/example.js)
describe('Example', function(){
  it('Does stuff', function(){
    expect(example.someFunction()).toEqual('return value for test')
  })
  .
  .
  .
})

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published