Skip to content

Commit

Permalink
Removed unnecessary test
Browse files Browse the repository at this point in the history
  • Loading branch information
TwitchBronBron committed Oct 29, 2020
1 parent 6913096 commit a1f4240
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions src/files/XmlFile.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -704,28 +704,6 @@ describe('XmlFile', () => {
expect(functionNames).not.to.include('logTypedef');
expect(functionNames).to.include('logBrs');
});

it('deleting typedef file clears brs file cache', async () => {
const brsFile = await program.addOrReplaceFile<BrsFile>('source/logger.brs', `
sub logBrs()
end sub
`);
//load d.bs file, which should shadow out the .brs file
const typedef = await program.addOrReplaceFile('source/logger.d.bs', `
sub logTypedef()
end sub
`);
await program.validate();

//add item to cache
brsFile['cache'].getOrAdd('__test', () => 'value');

//delete the typedef
program.removeFile(typedef.pathAbsolute);

//the brsFile's cache should be empty now
expect(brsFile['cache'].getOrAdd('__test', () => 'newValue')).to.equal('newValue');
});
});

it('finds script imports for single-quoted script tags', async () => {
Expand Down

0 comments on commit a1f4240

Please sign in to comment.