Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
grantcopley committed Sep 29, 2024
1 parent b7b260b commit 6fb9f4c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test-harness/layouts/Main.cfm
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<h1>Welcome to CBWIRE 4</h1>
</header>

#wire( name="Counter", lazy=true )#
#view()#
</body>
</html>
</cfoutput>
6 changes: 5 additions & 1 deletion test-harness/tests/specs/CBWIRESpec.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ component extends="coldbox.system.testing.BaseTestCase" {

describe( "Layout", function() {

beforeEach( function(){
setup();
} );

it( "should auto inject assets", function() {
var settings = getInstance( "coldbox:modulesettings:cbwire" );
settings.autoInjectAssets = true;
Expand Down Expand Up @@ -44,7 +48,7 @@ component extends="coldbox.system.testing.BaseTestCase" {
var event = this.get( "tests.requestassets" );
var html = event.getRenderedContent();
var beforeHead = left( html, findNoCase( "</head>", html )-1 );
expect( beforeHead ).toInclude( "https://cdn.jsdelivr.net/npm/pikaday/css/pikaday.css" );
expect( beforeHead ).toInclude( "<link rel=""stylesheet"" href=""https://cdn.jsdelivr.net/npm/[email protected]/dist/tailwind.min.css"">" );
} );

} );
Expand Down

0 comments on commit 6fb9f4c

Please sign in to comment.