Skip to content

Commit

Permalink
chore(tests): Remove extra debug logs from tests
Browse files Browse the repository at this point in the history
  • Loading branch information
elpete committed Mar 14, 2024
1 parent 1af491a commit 1ba3ca0
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 14 deletions.
6 changes: 0 additions & 6 deletions tests/specs/integration/BaseEntity/AttributeSpec.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -126,12 +126,6 @@ component extends="tests.resources.ModuleIntegrationSpec" {
extra.append( key );
}
}
debug( {
"actual" : memento.keyArray(),
"expected" : expected,
"missing" : missing,
"extra" : extra
} );
expect( structCount( memento ) ).toHaveLength( 18 );
}
expect( memento ).toHaveKey( "id" );
Expand Down
2 changes: 0 additions & 2 deletions tests/specs/integration/BaseEntity/MetadataSpec.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ component extends="tests.resources.ModuleIntegrationSpec" {
describe( "parent meta", function() {
it( "can detect a discriminated entity", function() {
var discriminated = getInstance( "InternalComment" );
debug( discriminated.get_Meta() );

expect( discriminated.get_Meta() ).toHaveKey( "parentDefinition" ).toHaveKey( "hasParentEntity" );

Expand All @@ -83,7 +82,6 @@ component extends="tests.resources.ModuleIntegrationSpec" {

it( "can detect a non-discriminated child subclass", function() {
var discriminated = getInstance( "Jingle" );
debug( discriminated.get_Meta() );

expect( discriminated.get_Meta() ).toHaveKey( "parentDefinition" ).toHaveKey( "hasParentEntity" );

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,7 @@ component extends="tests.resources.ModuleIntegrationSpec" {
} );

it( "applies count constraints to the final relationship in a nested relationship existence check", function() {
debug( getInstance( "User" ).has( "posts.comments", "=", 1 ).toSQL() );

var users = getInstance( "User" ).has( "posts.comments", "=", 1 ).get();
debug(
var = queryExecute( "SELECT user_id, count(*) from comments GROUP BY user_id" ),
top = 2
);
expect( users ).toBeArray();
expect( users ).toHaveLength( 1 );

Expand Down

0 comments on commit 1ba3ca0

Please sign in to comment.