mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
8256228e69
MINOR Updated jQuery.concrete references to point to the new "entwine" name git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@102695 467b73ca-7a2a-4603-9d3b-597d59a354a9
51 lines
1.2 KiB
JavaScript
51 lines
1.2 KiB
JavaScript
|
|
describe 'JSpec'
|
|
describe 'module'
|
|
describe 'hooks'
|
|
it 'should run beforeSpec'
|
|
addedBeforeSpec.should.be_true
|
|
end
|
|
|
|
it 'should run afterSpec'
|
|
addedAfterSpec.should.be_true
|
|
end
|
|
|
|
describe 'with suites'
|
|
it 'should run beforeSuite'
|
|
addedBeforeSuite.should.be_true
|
|
end
|
|
end
|
|
|
|
it 'should run afterSuite'
|
|
addedAfterSuite.should.be_true
|
|
end
|
|
end
|
|
|
|
describe '.hook()'
|
|
it 'should invoke hooks, returning an array of results'
|
|
results = hook('randomHook', 'foo', 'bar')
|
|
results.should.eql [['foo', 'bar']]
|
|
end
|
|
end
|
|
|
|
describe '.utilities'
|
|
it 'should be merged with the default utilities'
|
|
doFoo().should.eql 'foo'
|
|
doBar().should.eql 'bar'
|
|
end
|
|
end
|
|
|
|
describe '.matchers'
|
|
it 'should be merged with default matchers'
|
|
'test'.should.be_foo_bar
|
|
end
|
|
end
|
|
|
|
describe '.DSLs'
|
|
it 'should be merged with default DSLs'
|
|
JSpec.DSLs.snake.some_snake_case_stuff().should.be_true
|
|
JSpec.DSLs.camel.someCamelCaseStuff().should.be_true
|
|
end
|
|
end
|
|
end
|
|
end |