Skip to content

Commit

Permalink
Reformat vue files with prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
qmonmert committed Oct 17, 2024
1 parent 3c86be3 commit 5f87440
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { test, expect } from '@playwright/test';
import { expect, test } from '@playwright/test';

import { HomePage } from './Home-Page';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { defineConfig } from '@playwright/test';
import { devices } from '@playwright/test';
import { defineConfig, devices } from '@playwright/test';

/**
* Read environment variables from file.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { key } from 'piqure';
import { provide } from '@/injections';
import type { AuthRepository } from '@/auth/domain/AuthRepository';
import { JwtAuthRepository } from '@/auth/infrastructure/secondary/JwtAuthRepository';
import { provide } from '@/injections';
import type { AxiosHttp } from '@/shared/http/infrastructure/secondary/AxiosHttp';
import { key } from 'piqure';

export const AUTH_REPOSITORY = key<AuthRepository>('AuthRepository');

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { LoginCredentials } from './LoginCredentials';
import type { AuthenticatedUser } from '@/auth/domain/AuthenticatedUser';
import type { LoginCredentials } from './LoginCredentials';

export interface AuthRepository {
login(credentials: LoginCredentials): Promise<void>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@ import { describe, expect, it } from 'vitest';
import { stubAxiosHttp } from '../../shared/http/infrastructure/secondary/AxiosHttpStub';

describe('AuthProvider', () => {
it('should define AUTH_REPOSITORY with the correct key', () => {
expect(AUTH_REPOSITORY.description).toBe('AuthRepository');
});

it('should provide JwtAuthRepository', () => {
const mockAxiosHttp = stubAxiosHttp();
provideForAuth(mockAxiosHttp);
Expand Down

0 comments on commit 5f87440

Please sign in to comment.