Skip to content

Commit

Permalink
Merge branch 'development' of github.com:Ortus-Solutions/MockDataCFC …
Browse files Browse the repository at this point in the history
…into development
  • Loading branch information
lmajano committed May 9, 2024
2 parents f1e31a9 + a42647f commit 9393bfe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions models/MockData.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ component {
"Williams",
"Wilson",
"Young",
"Zelda",
"Zelda"
];

variables._webDomains = [
Expand Down Expand Up @@ -533,7 +533,7 @@ component {
/**
* Generate random words
*
* @size The number of words to generate or can be a min:max range to produce random number of words
* @size The number of words to generate or can be a min:max range to produce random number of words
* @separator The separtor to use, defaults to empty space
*/
function words( size = 1, separator = " " ){
Expand Down
4 changes: 2 additions & 2 deletions test-harness/tests/specs/MockDataTest.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,12 @@ component extends="coldbox.system.testing.BaseTestCase" appMapping="root" {
} );

it( "can generate boolean randomness", function(){
var r = mockDataCFC.mock( isActive : "boolean" );
var r = mockDataCFC.mock( isActive: "boolean" );
expect( r[ 1 ].isActive ).toBeBoolean();
} );

it( "can generate boolean digit randomness", function(){
var r = mockDataCFC.mock( isActive : "boolean-digit" );
var r = mockDataCFC.mock( isActive: "boolean-digit" );
expect( r[ 1 ].isActive ).toBeBoolean();
} );

Expand Down

0 comments on commit 9393bfe

Please sign in to comment.