Skip to content

Commit 4a535f2

Browse files
test: cleanups
1 parent 7ed503f commit 4a535f2

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

test/client/metadataApiDeploy.test.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1324,13 +1324,11 @@ describe('MetadataApiDeploy', () => {
13241324
},
13251325
]
13261326
);
1327+
const aabComponent = createAABComponent();
1328+
const components = new ComponentSet([aabComponent]);
13271329

13281330
it('should throw error with correct data when compilation fails', async () => {
1329-
const aabComponent = createAABComponent();
1330-
const components = new ComponentSet([aabComponent]);
1331-
1332-
// Stub retrieveMaxApiVersion on prototype before getting connection
1333-
$$.SANDBOX.stub(Connection.prototype, 'retrieveMaxApiVersion').resolves('60.0');
1331+
$$.SANDBOX.stub(Connection.prototype, 'retrieveMaxApiVersion').resolves('65.0');
13341332
const connection = await testOrg.getConnection();
13351333

13361334
const readFileStub = $$.SANDBOX.stub(fs.promises, 'readFile').resolves(agentContent);

0 commit comments

Comments
 (0)