aboutsummaryrefslogtreecommitdiff
path: root/paste-ui/src/App.test.js
diff options
context:
space:
mode:
authorMitchell Riedstra <mitch@riedstra.dev>2022-12-26 00:11:58 -0500
committerMitchell Riedstra <mitch@riedstra.dev>2022-12-26 00:11:58 -0500
commitfd3e3280a2590be9ca074a172c535990a5035649 (patch)
tree232f23010449a5aea88052c6e860a68ef9bdeb34 /paste-ui/src/App.test.js
parent0704674ba408db54855c33bcb8ca71a7ae1e74b7 (diff)
downloadpaste-fd3e3280a2590be9ca074a172c535990a5035649.tar.gz
paste-fd3e3280a2590be9ca074a172c535990a5035649.tar.xz
Add a proxy option for static assets. Fix the paste view handlers.
Diffstat (limited to 'paste-ui/src/App.test.js')
-rw-r--r--paste-ui/src/App.test.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/paste-ui/src/App.test.js b/paste-ui/src/App.test.js
new file mode 100644
index 0000000..1f03afe
--- /dev/null
+++ b/paste-ui/src/App.test.js
@@ -0,0 +1,8 @@
+import { render, screen } from '@testing-library/react';
+import App from './App';
+
+test('renders learn react link', () => {
+ render(<App />);
+ const linkElement = screen.getByText(/learn react/i);
+ expect(linkElement).toBeInTheDocument();
+});