Skip to content

Commit b0b4433

Browse files
Added testing to test es6 modules
1 parent 8753960 commit b0b4433

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

src/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@ import "./index.css";
88
import Book from "./Book";
99
import { books } from "./books_data";
1010

11+
// testing
12+
import { greeting } from "./testing/test";
13+
1114
function Booklist() {
15+
console.log(greeting);
1216
return (
1317
<section className="book-list">
1418
{books.map((book, index) => {

src/testing/test.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export { greeting };
2+
3+
const greeting = "Hello World";

0 commit comments

Comments
 (0)