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
18 lines
489 B
JavaScript
18 lines
489 B
JavaScript
|
|
describe 'Utility'
|
|
describe 'fixture()'
|
|
it 'should return a files contents'
|
|
fixture('fixtures/test.html').should.eql '<p>test</p>'
|
|
fixture('test.html').should.eql '<p>test</p>'
|
|
fixture('test').should.eql '<p>test</p>'
|
|
end
|
|
|
|
it 'should cache contents'
|
|
contents = fixture('test')
|
|
JSpec.cache['test'].should.eql contents
|
|
JSpec.cache['test'] = 'foo'
|
|
fixture('test').should.eql 'foo'
|
|
delete JSpec.cache['test']
|
|
end
|
|
end
|
|
end |