Skip to content

Commit

Permalink
test(*): fix tests
Browse files Browse the repository at this point in the history
Signed-off-by: Jonathan Casey <[email protected]>
  • Loading branch information
jonathan-casey committed Nov 17, 2023
1 parent 40b39a0 commit a898328
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/codegen/fromcto/odata/odatavisitor.js
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ describe('ODataVisitor', function () {
mockModelFile.getType.returns(mockMapDeclaration);
mockMapDeclaration.getName.returns('MockMap');
mockMapDeclaration.getKey.returns({getType: getKeyType});
mockMapDeclaration.getValue.returns({getType: getKeyType});
mockMapDeclaration.getValue.returns({getType: getValueType});

const isPrimitiveTypeStub = sandbox.stub(ModelUtil, 'isPrimitiveType');

Expand Down Expand Up @@ -384,7 +384,7 @@ describe('ODataVisitor', function () {

mockMapDeclaration.getName.returns('MockMap');
mockMapDeclaration.getKey.returns({getType: getKeyType});
mockMapDeclaration.getValue.returns({getType: getKeyType});
mockMapDeclaration.getValue.returns({getType: getValueType});
mockMapDeclaration.getModelFile.returns(mockModelFile);
mockModelFile.getType.returns(mockScalarDeclaration);
mockScalarDeclaration.getType.returns('String');
Expand Down Expand Up @@ -425,7 +425,7 @@ describe('ODataVisitor', function () {

mockMapDeclaration.getName.returns('MockMap');
mockMapDeclaration.getKey.returns({getType: getKeyType});
mockMapDeclaration.getValue.returns({getType: getKeyType});
mockMapDeclaration.getValue.returns({getType: getValueType});
mockMapDeclaration.getModelFile.returns(mockModelFile);
mockModelFile.getType.returns(mockScalarDeclaration);
mockScalarDeclaration.getType.returns('String');
Expand Down Expand Up @@ -466,7 +466,7 @@ describe('ODataVisitor', function () {

mockMapDeclaration.getName.returns('MockMap');
mockMapDeclaration.getKey.returns({getType: getKeyType});
mockMapDeclaration.getValue.returns({getType: getKeyType});
mockMapDeclaration.getValue.returns({getType: getValueType});
mockMapDeclaration.getModelFile.returns(mockModelFile);
mockModelFile.getType.returns(mockConceptDeclaration);
mockModelFile.getFullyQualifiedTypeName.returns('[email protected]');
Expand Down

0 comments on commit a898328

Please sign in to comment.