Skip to content

Commit

Permalink
Fix loader context mock
Browse files Browse the repository at this point in the history
  • Loading branch information
ogonkov committed Sep 4, 2020
1 parent a822c7d commit 98fc632
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/get-loader-context.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ export function getLoaderContext(resourcePath) {
query: '',
resourcePath,
async: jest.fn().mockReturnValue(callback),
addDependency: jest.fn().mockName('loaderContext.addDependency')
addDependency: jest.fn().mockName('loaderContext.addDependency'),
emitWarning: jest.fn().mockName('loaderContext.emitWarning')
};
const result = new Promise(function(resolve, reject) {
callback.mockImplementation(function(error, result) {
Expand Down

0 comments on commit 98fc632

Please sign in to comment.