-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
fixed prettier
- Loading branch information
1 parent
95288d9
commit dbde899
Showing
12 changed files
with
70 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,5 @@ | ||
{ | ||
"$schema": "https://json.schemastore.org/prettierrc", | ||
"semi": false, | ||
"tabWidth": 4, | ||
"singleQuote": true, | ||
"printWidth": 100, | ||
"trailingComma": "none" | ||
} | ||
"$schema": "https://json.schemastore.org/prettierrc", | ||
"tabWidth": 4, | ||
"printWidth": 100 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import { test, expect } from '@playwright/test' | ||
import { test, expect } from "@playwright/test"; | ||
|
||
// See here how to get started: | ||
// https://playwright.dev/docs/intro | ||
test('visits the app root url', async ({ page }) => { | ||
await page.goto('/') | ||
await expect(page.locator('div.greetings > h1')).toHaveText('Main layout') | ||
}) | ||
test("visits the app root url", async ({ page }) => { | ||
await page.goto("/"); | ||
await expect(page.locator("div.greetings > h1")).toHaveText("Main layout"); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
@import './base.css'; | ||
@import "./base.css"; | ||
|
||
#app { | ||
max-width: 1280px; | ||
|
22 changes: 11 additions & 11 deletions
22
agdb_studio/src/components/__tests__/auth/LoginForm.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
import { describe, it, expect } from 'vitest' | ||
import { mount } from '@vue/test-utils' | ||
import LoginForm from '../../auth/LoginForm.vue' | ||
import { describe, it, expect } from "vitest"; | ||
import { mount } from "@vue/test-utils"; | ||
import LoginForm from "../../auth/LoginForm.vue"; | ||
|
||
describe('LoginForm', () => { | ||
it('renders properly', () => { | ||
const wrapper = mount(LoginForm) | ||
expect(wrapper.find('form').exists()).toBe(true) | ||
describe("LoginForm", () => { | ||
it("renders properly", () => { | ||
const wrapper = mount(LoginForm); | ||
expect(wrapper.find("form").exists()).toBe(true); | ||
|
||
// Check if both fields exists | ||
expect(wrapper.find('input[type="text"]#username').exists()).toBeTruthy() | ||
expect(wrapper.find('input[type="password"]#password').exists()).toBeTruthy() | ||
}) | ||
}) | ||
expect(wrapper.find('input[type="text"]#username').exists()).toBeTruthy(); | ||
expect(wrapper.find('input[type="password"]#password').exists()).toBeTruthy(); | ||
}); | ||
}); |
18 changes: 9 additions & 9 deletions
18
agdb_studio/src/components/__tests__/layout/MainLayout.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
import { describe, it, expect } from 'vitest' | ||
import { describe, it, expect } from "vitest"; | ||
|
||
import { mount } from '@vue/test-utils' | ||
import MainLayout from '../../layout/MainLayout.vue' | ||
import { mount } from "@vue/test-utils"; | ||
import MainLayout from "../../layout/MainLayout.vue"; | ||
|
||
describe('MainLayout', () => { | ||
it('renders properly', () => { | ||
const wrapper = mount(MainLayout, { props: { msg: 'Hello Vitest' } }) | ||
expect(wrapper.text()).toContain('Main layout') | ||
}) | ||
}) | ||
describe("MainLayout", () => { | ||
it("renders properly", () => { | ||
const wrapper = mount(MainLayout, { props: { msg: "Hello Vitest" } }); | ||
expect(wrapper.text()).toContain("Main layout"); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
import './assets/main.css' | ||
import "./assets/main.css"; | ||
|
||
import { createApp } from 'vue' | ||
import { createPinia } from 'pinia' | ||
import { createApp } from "vue"; | ||
import { createPinia } from "pinia"; | ||
|
||
import App from './App.vue' | ||
import router from './router' | ||
import App from "./App.vue"; | ||
import router from "./router"; | ||
|
||
const app = createApp(App) | ||
const app = createApp(App); | ||
|
||
app.use(createPinia()) | ||
app.use(router) | ||
app.use(createPinia()); | ||
app.use(router); | ||
|
||
app.mount('#app') | ||
app.mount("#app"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,29 @@ | ||
import { createRouter, createWebHistory } from 'vue-router' | ||
import HomeView from '../views/HomeView.vue' | ||
import LoginView from '@/views/LoginView.vue' | ||
import { createRouter, createWebHistory } from "vue-router"; | ||
import HomeView from "../views/HomeView.vue"; | ||
import LoginView from "@/views/LoginView.vue"; | ||
|
||
const router = createRouter({ | ||
history: createWebHistory(import.meta.env.BASE_URL), | ||
routes: [ | ||
{ | ||
path: '/', | ||
name: 'home', | ||
component: HomeView | ||
path: "/", | ||
name: "home", | ||
component: HomeView, | ||
}, | ||
{ | ||
path: '/about', | ||
name: 'about', | ||
path: "/about", | ||
name: "about", | ||
// route level code-splitting | ||
// this generates a separate chunk (About.[hash].js) for this route | ||
// which is lazy-loaded when the route is visited. | ||
component: () => import('../views/AboutView.vue') | ||
component: () => import("../views/AboutView.vue"), | ||
}, | ||
{ | ||
path: '/login', | ||
name: 'login', | ||
component: LoginView | ||
} | ||
] | ||
}) | ||
path: "/login", | ||
name: "login", | ||
component: LoginView, | ||
}, | ||
], | ||
}); | ||
|
||
export default router | ||
export default router; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
import { ref, computed } from 'vue' | ||
import { defineStore } from 'pinia' | ||
import { ref, computed } from "vue"; | ||
import { defineStore } from "pinia"; | ||
|
||
export const useCounterStore = defineStore('counter', () => { | ||
const count = ref(0) | ||
const doubleCount = computed(() => count.value * 2) | ||
export const useCounterStore = defineStore("counter", () => { | ||
const count = ref(0); | ||
const doubleCount = computed(() => count.value * 2); | ||
function increment() { | ||
count.value++ | ||
count.value++; | ||
} | ||
|
||
return { count, doubleCount, increment } | ||
}) | ||
return { count, doubleCount, increment }; | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters