removed mockdir.clear, replaced addContent with setContent

Signed-off-by: Ankit Anand <ankitanand.l@flipkart.com>
This commit is contained in:
Ankit Anand
2023-10-19 16:46:23 +05:30
parent 47dc8b84b3
commit 0fb1d8c7f8
@@ -73,9 +73,6 @@ describe('fetch:rails', () => {
createTemporaryDirectory: jest.fn().mockResolvedValue(mockTmpDir),
};
mockDir.clear();
mockDir.addContent({ template: {} });
const mockReader: UrlReader = {
readUrl: jest.fn(),
readTree: jest.fn(),
@@ -93,7 +90,7 @@ describe('fetch:rails', () => {
});
beforeEach(() => {
mockDir.addContent({
mockDir.setContent({
result: '{}',
});
jest.clearAllMocks();