Skip to content

Commit

Permalink
PRESIDECMS-2977 modify test
Browse files Browse the repository at this point in the history
  • Loading branch information
DominicWatson committed Dec 11, 2024
1 parent 63c9754 commit 8202442
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/unit/api/admin/AdminMenuItemServiceTest.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ component extends="tests.resources.HelperObjects.PresideBddTestCase" {
expect( svc.itemHasHandlerAction( itemId, action ) ).toBeTrue();
} );
it( "should return true when item does not have corresponding convention based handler", function(){
var svc = _getService();
var svc = _getService();

var itemId = CreateUUId();
var action = CreateUUId();

Expand Down Expand Up @@ -151,7 +151,7 @@ component extends="tests.resources.HelperObjects.PresideBddTestCase" {

svc.$( "itemIsLegacyViewImplementation" ).$args( itemId, legacyViewBase ).$results( true );

expect( svc.getRawItemConfig( itemId, legacyViewBase ) ).toBe( { view=legacyViewBase & itemId } );
expect( svc.getRawItemConfig( itemId, legacyViewBase ) ).toBe( { view=legacyViewBase & itemId, id=itemId } );
} );

it( "should return any configuration specified in config.cfc for the item", function(){
Expand All @@ -166,6 +166,7 @@ component extends="tests.resources.HelperObjects.PresideBddTestCase" {

expect( config.thisIsATest ?: "noitisnot" ).toBe( "yesitis" );
} );

} );

describe( "prepareItemForRequest( itemId, legacyViewBase )", function(){
Expand Down

0 comments on commit 8202442

Please sign in to comment.