spec: fix registerTemplateCss test
the spec assumed it would be the only thing on the page doing registerTemplateCss Change-Id: I27d7433a4c7e35b73dc1bf3fdd6aa11289c00fbc Reviewed-on: https://gerrit.instructure.com/20075 Tested-by: Jenkins <jenkins@instructure.com> Reviewed-by: Ryan Florence <ryanf@instructure.com> Product-Review: Jon Jensen <jon@instructure.com> QA-Review: Jon Jensen <jon@instructure.com>
This commit is contained in:
parent
acfe36bcc5
commit
c8cd11388a
|
@ -14,7 +14,7 @@ define [
|
|||
|
||||
test 'should append <style> node to bottom of <head>', ->
|
||||
registerTemplateCss testTemplateId, testRule
|
||||
equal $('head style:last').text(), "/* From: #{testTemplateId} */\n#{testRule}"
|
||||
ok $('head style:last').text().indexOf("/* From: #{testTemplateId} */\n#{testRule}") >= 0
|
||||
|
||||
test 'should remove all styles when you call clear()', ->
|
||||
registerTemplateCss testTemplateId, testRule
|
||||
|
|
Loading…
Reference in New Issue