chore: prettier formatting

I thought I had done this in the past but apparently the commit got
lost.

Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
This commit is contained in:
André Jaenisch 2024-06-14 18:04:45 +02:00
parent 3e4e725347
commit 908064639a
No known key found for this signature in database
GPG key ID: 5A668E771F1ED854
3 changed files with 30 additions and 27 deletions

View file

@ -72,31 +72,30 @@ npm run dev -- --open
Quick overview of the structure of the codebase:
* `.reuse` - This folder holds configuration for [REUSE](https://reuse.software/)
* `.vscode` - This folder holds configuration for Visual Studio Code
* `LICENSES` - Used in conjunction with REUSE
* `src` - The source code of the web application (server and client)
* `src-tauri` - Glue code for Tauri to turn it into a native application
* `static` - Static assets (FavIcon)
* `tests` - Mainly Svelte component tests for the client
* `.eslintignore` and `.eslintrc.cjs` - ESLint ignore and configuration files
* `.gitignore` - Files and folders not to be subjected to version control
* `.node-version` - Minimum of supported NodeJS version
* `*.license` - Files to be used in conjunction with REUSE
* `.npmrc` - NPM configuration file
* `.prettierignore` and `.prettierrc` - Prettier ignore and configuration files
* `COPYING` - License of this project under AGPL
* `package-lock.json` and `package.json` - NPM package lockfile for dependencies
- `.reuse` - This folder holds configuration for [REUSE](https://reuse.software/)
- `.vscode` - This folder holds configuration for Visual Studio Code
- `LICENSES` - Used in conjunction with REUSE
- `src` - The source code of the web application (server and client)
- `src-tauri` - Glue code for Tauri to turn it into a native application
- `static` - Static assets (FavIcon)
- `tests` - Mainly Svelte component tests for the client
- `.eslintignore` and `.eslintrc.cjs` - ESLint ignore and configuration files
- `.gitignore` - Files and folders not to be subjected to version control
- `.node-version` - Minimum of supported NodeJS version
- `*.license` - Files to be used in conjunction with REUSE
- `.npmrc` - NPM configuration file
- `.prettierignore` and `.prettierrc` - Prettier ignore and configuration files
- `COPYING` - License of this project under AGPL
- `package-lock.json` and `package.json` - NPM package lockfile for dependencies
and meta information about this project
* `playwright.config.ts` - Playwright End-to-End test configuration
* `postcss.config.cjs` - PostCSS postprocessor configuration file
* `README.md` - This document
* `svelte.config.js` - Svelte configuration file
* `tailwind.config.js` - Tailwind CSS configuration file
* `tsconfig.json` - TypeScript configuration file
* `vite.config.ts` - Vite bundler configuration file
* `vitest.config.ts` - Vitest test runner configuration file
- `playwright.config.ts` - Playwright End-to-End test configuration
- `postcss.config.cjs` - PostCSS postprocessor configuration file
- `README.md` - This document
- `svelte.config.js` - Svelte configuration file
- `tailwind.config.js` - Tailwind CSS configuration file
- `tsconfig.json` - TypeScript configuration file
- `vite.config.ts` - Vite bundler configuration file
- `vitest.config.ts` - Vitest test runner configuration file
## Building

View file

@ -27,5 +27,6 @@ You should have received a copy of the GNU Affero General Public License along w
</script>
{#if created_at && created_at_formatted}
<span>created <time datetime={created_at?.toISOString()}>{@html created_at_formatted}</time></span>
<span>created <time datetime={created_at?.toISOString()}>{@html created_at_formatted}</time></span
>
{/if}

View file

@ -73,7 +73,7 @@ describe('Created.svelte', () => {
it('should render formatted in that locale', () => {
// Arrange
const created_at = new Date();
const locale = 'de'
const locale = 'de';
// Act
const { container } = render(Created, { created_at, locale });
@ -81,7 +81,10 @@ describe('Created.svelte', () => {
// Assert
expect(container.textContent).not.toEqual('');
expect(screen.getByText(new RegExp(created_at.getFullYear()))).toBeDefined();
expect(screen.getByText(new RegExp(created_at.getFullYear()))).toHaveAttribute('datetime', created_at.toISOString());
expect(screen.getByText(new RegExp(created_at.getFullYear()))).toHaveAttribute(
'datetime',
created_at.toISOString()
);
});
});
});