mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-10-17 03:04:08 +00:00
Migrate from ESLint to Oxlint and Oxfmt
This commit is contained in:
@@ -6,9 +6,9 @@ describe('context', () => {
|
||||
describe('useDependencies', () => {
|
||||
let lastDependencies: unknown[];
|
||||
|
||||
function TestComponent({ name}: { name: string }) {
|
||||
function TestComponent({ name }: { name: string }) {
|
||||
// eslint-disable-next-line react-compiler/react-compiler
|
||||
lastDependencies = useDependencies(name);
|
||||
lastDependencies = useDependencies(name);
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -19,11 +19,13 @@ describe('context', () => {
|
||||
});
|
||||
|
||||
it('throws when requested dependency is not found in container', () => {
|
||||
expect(() => render(
|
||||
<ContainerProvider value={fromPartial({})}>
|
||||
<TestComponent name="foo" />
|
||||
</ContainerProvider>,
|
||||
)).toThrowError('Dependency with name "foo" not found in container');
|
||||
expect(() =>
|
||||
render(
|
||||
<ContainerProvider value={fromPartial({})}>
|
||||
<TestComponent name="foo" />
|
||||
</ContainerProvider>,
|
||||
),
|
||||
).toThrowError('Dependency with name "foo" not found in container');
|
||||
});
|
||||
|
||||
it('gets dependency from container', () => {
|
||||
|
||||
Reference in New Issue
Block a user