summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIvan Dolgov <ivan@dolgov.fi>2018-09-22 00:55:11 +0300
committerIvan Dolgov <ivan@dolgov.fi>2018-09-22 00:55:11 +0300
commit05b6b72104206468b50743026981e9d3c4974c61 (patch)
tree176333ebef1b58b82cb4a17a3f7bd571455c4c7f /src
parente2cf702d339d95600001f60993252b4d8054f6d6 (diff)
downloadickui-05b6b72104206468b50743026981e9d3c4974c61.tar.gz
Configure initial setupivan/setup
Diffstat (limited to 'src')
-rw-r--r--src/Root.js9
-rw-r--r--src/Root.test.js13
-rw-r--r--src/index.html17
-rw-r--r--src/index.js6
4 files changed, 45 insertions, 0 deletions
diff --git a/src/Root.js b/src/Root.js
new file mode 100644
index 0000000..95fb168
--- /dev/null
+++ b/src/Root.js
@@ -0,0 +1,9 @@
+import React from 'react';
+
+const Root = () => (
+ <main>
+ <p>Hello, world!</p>
+ </main>
+);
+
+export default Root;
diff --git a/src/Root.test.js b/src/Root.test.js
new file mode 100644
index 0000000..7f785a2
--- /dev/null
+++ b/src/Root.test.js
@@ -0,0 +1,13 @@
+import React from 'react';
+import { render } from 'react-testing-library';
+import 'jest-dom/extend-expect';
+
+import Root from './Root';
+
+describe('Root', () => {
+ test('greeting is shown', () => {
+ const { container } = render(<Root />);
+
+ expect(container).toHaveTextContent('Hello, world!');
+ });
+});
diff --git a/src/index.html b/src/index.html
new file mode 100644
index 0000000..6d3f1dd
--- /dev/null
+++ b/src/index.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
+ <title>Ick CI</title>
+ </head>
+ <body>
+ <noscript>
+ <h1>JavaScript is disabled</h1>
+ <p>In order to use this application, please enable JavaScript in your browser.</p>
+ <p><a href="http://www.enable-javascript.com/" target="_blank">Learn more</a></p>
+ </noscript>
+ <div id="root"></div>
+ <script src="main.js"></script>
+ </body>
+</html>
diff --git a/src/index.js b/src/index.js
new file mode 100644
index 0000000..9fada02
--- /dev/null
+++ b/src/index.js
@@ -0,0 +1,6 @@
+import React from 'react';
+import { render } from 'react-dom';
+
+import Root from './Root';
+
+render(<Root />, document.getElementById('root'));