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:
parent
3e4e725347
commit
908064639a
3 changed files with 30 additions and 27 deletions
47
README.md
47
README.md
|
@ -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
|
||||
|
||||
|
|
|
@ -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}
|
||||
|
|
|
@ -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()
|
||||
);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue