Class jasmine.Env
Defined in: Env.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Environment for Jasmine
|
Method Attributes | Method Name and Description |
---|---|
addEqualityTester(equalityTester)
|
|
addReporter(reporter)
Register a reporter to receive status updates from Jasmine.
|
|
afterEach(afterEachFunction)
|
|
beforeEach(beforeEachFunction)
|
|
compareObjects_(a, b, mismatchKeys, mismatchValues)
|
|
contains_(haystack, needle)
|
|
describe(description, specDefinitions)
|
|
equals_(a, b, mismatchKeys, mismatchValues)
|
|
execute()
|
|
it(description, func)
|
|
version()
|
|
xdescribe(desc, specDefinitions)
|
|
xit(desc, func)
|
Method Detail
addEqualityTester(equalityTester)
- Parameters:
- equalityTester
addReporter(reporter)
Register a reporter to receive status updates from Jasmine.
- Parameters:
- {jasmine.Reporter} reporter
- An object which will receive status updates.
afterEach(afterEachFunction)
- Parameters:
- afterEachFunction
beforeEach(beforeEachFunction)
- Parameters:
- beforeEachFunction
compareObjects_(a, b, mismatchKeys, mismatchValues)
- Parameters:
- a
- b
- mismatchKeys
- mismatchValues
contains_(haystack, needle)
- Parameters:
- haystack
- needle
currentRunner()
describe(description, specDefinitions)
- Parameters:
- description
- specDefinitions
equals_(a, b, mismatchKeys, mismatchValues)
- Parameters:
- a
- b
- mismatchKeys
- mismatchValues
execute()
it(description, func)
- Parameters:
- description
- func
matchersClass()
nextSpecId()
- Returns:
- a sequential integer starting at 0
nextSuiteId()
- Returns:
- a sequential integer starting at 0
specFilter()
version()
- Returns:
- an object containing jasmine version build info, if set.
versionString()
- Returns:
- string containing jasmine version build info, if set.
xdescribe(desc, specDefinitions)
- Parameters:
- desc
- specDefinitions
xit(desc, func)
- Parameters:
- desc
- func