removed mockdir.clear, replaced addContent with setContent
Signed-off-by: Ankit Anand <ankitanand.l@flipkart.com>
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user