Skip to content

Commit bdce009

Browse files
committed
chapter 03: creating a fake extension manager, the name of a fake is because we can use it as a stub or a mock, depending of the test.
1 parent 8c0bb71 commit bdce009

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
function alwaysValidFakeExtensionManager() {
2+
/**
3+
* @param {string} fileName
4+
*/
5+
function isValid(fileName) {
6+
return true;
7+
}
8+
}
9+
10+
module.exports = alwaysValidFakeExtensionManager;

0 commit comments

Comments
 (0)