Skip to content

Commit

Permalink
Added test case for cfStopwatch tag
Browse files Browse the repository at this point in the history
  • Loading branch information
cfmitrah committed Jan 31, 2024
1 parent cdc4799 commit 5194881
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions test/tags/Stopwatch.cfc
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
component extends="org.lucee.cfml.test.LuceeTestCase" labels="cfstopwatch" {
function run( testResults, testBox ) {
describe("Testcase for cfstopwatch tag", function() {
it( title="Checking stopwatch", body=function( currentSpec ) {
stopwatch variable="stopwatchVar" {
i = 0;
loop from="1" to="10000" index="j" {
i++;
}
}

expect(stopwatchVar).toBeNumeric();
expect(stopwatchVar).toBeTrue();
});
});
}
}

0 comments on commit 5194881

Please sign in to comment.