Skip to content

Commit

Permalink
Adding tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nolanerck committed Oct 8, 2024
1 parent f0807e2 commit 837fd2a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/specs/coverage/CoverageServiceTest.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ component extends="testbox.system.BaseSpec" {
.toHaveKey( "blacklist" )
.toHaveKey( "whitelist" )
.toHaveKey( "browser" )
.toHaveKey( "sonarqube" );
.toHaveKey( "sonarqube" )
.toHaveKey( "coverageThresholds" );

if ( isFRLoaded() ) {
expect( model.getCoverageEnabled() ).toBeTrue(
Expand Down
14 changes: 14 additions & 0 deletions tests/specs/coverage/browser/CodeBrowserTest.cfc
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/**
* This tests the CodeBrowser functionality in TestBox.
*/
component extends="testbox.system.BaseSpec" {

function run(){
describe( "CodeBrowser", function(){
it( "can init", function(){
expect( new system.coverage.browser.CodeBrowser ( {} ) ).toBeComponent();
} );
} );
}

}

0 comments on commit 837fd2a

Please sign in to comment.