Skip to content

Commit

Permalink
pnpm run fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
voluntas committed Dec 25, 2024
1 parent 721ea5d commit 37ccd4b
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 44 deletions.
10 changes: 9 additions & 1 deletion biome.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,15 @@
"enabled": true
},
"files": {
"include": ["src/**", "examples/**", "tests/**", "*.config.mjs", "package.json", "biome.jsonc"]
"include": [
"src/**",
"examples/**",
"tests/**",
"e2e-tests/**",
"*.config.mjs",
"package.json",
"biome.jsonc"
]
},
"linter": {
"enabled": true,
Expand Down
7 changes: 1 addition & 6 deletions e2e-tests/data_channel_signaling_only/main.mts
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,7 @@ document.addEventListener('DOMContentLoaded', async () => {
const channelIdSuffix = import.meta.env.VITE_TEST_CHANNEL_ID_SUFFIX || ''
const secretKey = import.meta.env.VITE_TEST_SECRET_KEY

const client = new SoraClient(
signalingUrl,
channelIdPrefix,
channelIdSuffix,
secretKey,
)
const client = new SoraClient(signalingUrl, channelIdPrefix, channelIdSuffix, secretKey)

// SDK バージョンの表示
const sdkVersionElement = document.querySelector('#sdk-version')
Expand Down
8 changes: 1 addition & 7 deletions e2e-tests/messaging/main.mts
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,7 @@ document.addEventListener('DOMContentLoaded', async () => {

document.querySelector('#connect')?.addEventListener('click', async () => {
const channelName = getChannelName()
client = new SoraClient(
signalingUrl,
channelIdPrefix,
channelIdSuffix,
secretKey,
channelName,
)
client = new SoraClient(signalingUrl, channelIdPrefix, channelIdSuffix, secretKey, channelName)
const checkCompress = document.getElementById('check-compress') as HTMLInputElement
const compress = checkCompress.checked
const checkHeader = document.getElementById('check-header') as HTMLInputElement
Expand Down
7 changes: 1 addition & 6 deletions e2e-tests/recvonly/main.mts
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,7 @@ document.addEventListener('DOMContentLoaded', () => {
const secretKey = import.meta.env.VITE_TEST_SECRET_KEY

// Sora クライアントの初期化
const client = new SoraClient(
signalingUrl,
channelIdPrefix,
channelIdSuffix,
secretKey,
)
const client = new SoraClient(signalingUrl, channelIdPrefix, channelIdSuffix, secretKey)

// SDK バージョンの表示
const sdkVersionElement = document.querySelector('#sdk-version')
Expand Down
7 changes: 1 addition & 6 deletions e2e-tests/sendonly/main.mts
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,7 @@ document.addEventListener('DOMContentLoaded', async () => {
const channelIdSuffix = import.meta.env.VITE_TEST_CHANNEL_ID_SUFFIX || ''
const secretKey = import.meta.env.VITE_TEST_SECRET_KEY

const client = new SoraClient(
signalingUrl,
channelIdPrefix,
channelIdSuffix,
secretKey,
)
const client = new SoraClient(signalingUrl, channelIdPrefix, channelIdSuffix, secretKey)

// SDK バージョンの表示
const sdkVersionElement = document.querySelector('#sdk-version')
Expand Down
7 changes: 1 addition & 6 deletions e2e-tests/sendonly_audio/main.mts
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,7 @@ document.addEventListener('DOMContentLoaded', async () => {
const channelIdSuffix = import.meta.env.VITE_TEST_CHANNEL_ID_SUFFIX || ''
const secretKey = import.meta.env.VITE_TEST_SECRET_KEY

const client = new SoraClient(
signalingUrl,
channelIdPrefix,
channelIdSuffix,
secretKey,
)
const client = new SoraClient(signalingUrl, channelIdPrefix, channelIdSuffix, secretKey)

document.querySelector('#connect')?.addEventListener('click', async () => {
const stream = await navigator.mediaDevices.getUserMedia({ video: false, audio: true })
Expand Down
7 changes: 1 addition & 6 deletions e2e-tests/spotlight_recvonly/main.mts
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,7 @@ document.addEventListener('DOMContentLoaded', () => {
const secretKey = import.meta.env.VITE_TEST_SECRET_KEY

// Sora クライアントの初期化
const client = new SoraClient(
signalingUrl,
channelIdPrefix,
channelIdSuffix,
secretKey,
)
const client = new SoraClient(signalingUrl, channelIdPrefix, channelIdSuffix, secretKey)

document.querySelector('#connect')?.addEventListener('click', async () => {
await client.connect()
Expand Down
7 changes: 1 addition & 6 deletions e2e-tests/spotlight_sendonly/main.mts
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,7 @@ document.addEventListener('DOMContentLoaded', async () => {
const channelIdSuffix = import.meta.env.VITE_TEST_CHANNEL_ID_SUFFIX || ''
const secretKey = import.meta.env.VITE_TEST_SECRET_KEY

const client = new SoraClient(
signalingUrl,
channelIdPrefix,
channelIdSuffix,
secretKey,
)
const client = new SoraClient(signalingUrl, channelIdPrefix, channelIdSuffix, secretKey)

document.querySelector('#connect')?.addEventListener('click', async () => {
const stream = await navigator.mediaDevices.getUserMedia({ video: true, audio: true })
Expand Down

0 comments on commit 37ccd4b

Please sign in to comment.