Skip to content

Commit f2ad583

Browse files
author
Gonzalo Diaz
committed
[REFACTOR] old import / export re-written.
1 parent 3ac3994 commit f2ad583

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
const objTest = {
1+
export const objTest = {
22
testCall() {
33
console.log('call');
44
return true;
55
}
66
};
77

8-
export default objTest;
8+
export default { objTest };

src/examples/callNamedFunctionByVariable.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { describe, expect, it } from '@jest/globals';
2-
import objTest from './callNamedFunctionByVariable.js';
2+
import { objTest } from './callNamedFunctionByVariable.js';
33

44
describe('calling function from object', () => {
55
it('calling function from object as a variable', () => {

0 commit comments

Comments
 (0)