Skip to content

Commit 06a5c40

Browse files
committed
Move to ES modules.
1 parent e6fbccf commit 06a5c40

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

src/rules/__mocks__/addModuleToQueue.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ OF ANY KIND, either express or implied. See the License for the specific languag
99
governing permissions and limitations under the License.
1010
*/
1111

12-
module.exports = (lastPromiseInChain, resultFn, delegateConfig) =>
12+
export default (lastPromiseInChain, resultFn, delegateConfig) =>
1313
lastPromiseInChain.then(() => Promise.resolve(resultFn(delegateConfig)));

src/rules/__mocks__/enhanceExecutionErrorMessageAndRethrow.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ OF ANY KIND, either express or implied. See the License for the specific languag
99
governing permissions and limitations under the License.
1010
*/
1111

12-
module.exports = () => (e) => Promise.reject(e);
12+
export default () => (e) => Promise.reject(e);

src/rules/__mocks__/logModuleErrorAndRethrow.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ OF ANY KIND, either express or implied. See the License for the specific languag
99
governing permissions and limitations under the License.
1010
*/
1111

12-
module.exports = () => (e) => {
12+
export default () => (e) => {
1313
e.message = `enhanced error: ${e.message}`;
1414
return Promise.reject(e);
1515
};

src/rules/__mocks__/normalizeDelegate.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ OF ANY KIND, either express or implied. See the License for the specific languag
99
governing permissions and limitations under the License.
1010
*/
1111

12-
module.exports = (e) => e;
12+
export default (e) => e;

src/rules/__mocks__/normalizeError.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ OF ANY KIND, either express or implied. See the License for the specific languag
99
governing permissions and limitations under the License.
1010
*/
1111

12-
module.exports = (e) => {
12+
export default (e) => {
1313
e.message = `normalized ${e.message}`;
1414
return e;
1515
};

src/rules/__mocks__/transformToTimeBoundedPromise.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ OF ANY KIND, either express or implied. See the License for the specific languag
99
governing permissions and limitations under the License.
1010
*/
1111

12-
module.exports = (otherPromiseFn) => (context) => otherPromiseFn(context);
12+
export default (otherPromiseFn) => (context) => otherPromiseFn(context);

0 commit comments

Comments
 (0)