aboutsummaryrefslogtreecommitdiff
path: root/src/components/actions
diff options
context:
space:
mode:
authorRuben Beltran del Rio <ruben@unlimited.pizza>2022-05-01 00:56:06 +0200
committerRuben Beltran del Rio <ruben@unlimited.pizza>2022-05-01 00:56:06 +0200
commita7cf03c192470cbab13edeb1aec99e0c66dede10 (patch)
tree581b4430d1de958dcb666bae80a7678332134602 /src/components/actions
parent010f307346e525ac2e4239a0549d2c1a4d6d102b (diff)
Update / use typescript
Diffstat (limited to 'src/components/actions')
-rw-r--r--src/components/actions/.topic.svelte.icloudbin0 -> 160 bytes
-rw-r--r--src/components/actions/.topic.test.js.icloudbin0 -> 161 bytes
-rw-r--r--src/components/actions/topic.svelte24
-rw-r--r--src/components/actions/topic.test.js25
4 files changed, 0 insertions, 49 deletions
diff --git a/src/components/actions/.topic.svelte.icloud b/src/components/actions/.topic.svelte.icloud
new file mode 100644
index 0000000..7abf17a
--- /dev/null
+++ b/src/components/actions/.topic.svelte.icloud
Binary files differ
diff --git a/src/components/actions/.topic.test.js.icloud b/src/components/actions/.topic.test.js.icloud
new file mode 100644
index 0000000..e5d3d76
--- /dev/null
+++ b/src/components/actions/.topic.test.js.icloud
Binary files differ
diff --git a/src/components/actions/topic.svelte b/src/components/actions/topic.svelte
deleted file mode 100644
index e2f59c9..0000000
--- a/src/components/actions/topic.svelte
+++ /dev/null
@@ -1,24 +0,0 @@
-<script>
- export let actions;
-
- import { _ } from 'svelte-i18n';
-</script>
-
-<li>
- <a href="/reply/{actions.id}" title={$_('header.action.reply.title')}>
- {@html $_('header.action.reply.display')}
- </a>
-</li>
-
-<style>
- li {
- display: inline;
- margin: 5px;
- }
-
- a {
- text-decoration: none;
- line-height: 3em;
- display: inline-block;
- }
-</style>
diff --git a/src/components/actions/topic.test.js b/src/components/actions/topic.test.js
deleted file mode 100644
index 9d6ee93..0000000
--- a/src/components/actions/topic.test.js
+++ /dev/null
@@ -1,25 +0,0 @@
-import '@testing-library/jest-dom/extend-expect';
-
-import { render } from '@testing-library/svelte';
-import '$/config/i18n';
-
-import Topic from './topic.svelte';
-
-const internals = {
- results: null
-};
-
-describe('Topic Actions component', () => {
-
- test('Should link to reply page', () => {
-
- const results = render(Topic, { props: {
- actions: {
- id: '8ebaa211-fd9b-423a-8b4f-b57622007fde'
- }
- } });
-
- expect(results.getByTitle('Reply').closest('a'))
- .toHaveAttribute('href', '/reply/8ebaa211-fd9b-423a-8b4f-b57622007fde');
- });
-});