Skip to content

Commit 4efcaa8

Browse files
committed
Fix ESLint: add before import, remove unused bulkCtTitle1 and tempEnv
1 parent 3adc817 commit 4efcaa8

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

.talismanrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ fileignoreconfig:
2828
checksum: 2597efae3c1ab8cc173d5bf205f1c76932211f8e0eb2a16444e055d83481976c
2929
# Sanity check test files - use process.env for all secrets (no hardcoded values)
3030
- filename: test/sanity-check/api/environment-test.js
31-
checksum: 5c3225c9013d7f0640ed7ef0e556fda4382e52b93da1af1f155c94eededd5195
31+
checksum: 8fe733679cd4d116509a42c3d4daaf431220732acd86869dbe49236f42990b2a
3232
- filename: test/sanity-check/env.example.txt
3333
checksum: 3339944cd20d6d72f70a92e54af3de96736250b4b7117a29577575f9b52ed611
3434
- filename: test/sanity-check/api/token-test.js

test/sanity-check/api/bulkOperation-test.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { expect } from 'chai'
2-
import { describe, it, setup } from 'mocha'
2+
import { describe, it, setup, before } from 'mocha'
33
import { contentstackClient } from '../utility/ContentstackClient.js'
44
import * as testSetup from '../utility/testSetup.js'
55
import { testData } from '../utility/testHelpers.js'
@@ -15,7 +15,6 @@ let entryUid2 = ''
1515
let assetUid2 = ''
1616
let bulkCtUid1 = ''
1717
let bulkCtUid2 = ''
18-
let bulkCtTitle1 = ''
1918
let jobId1 = ''
2019
let jobId2 = ''
2120
let jobId3 = ''
@@ -70,7 +69,6 @@ describe('BulkOperation api test', () => {
7069
assetUid2 = (testData.assets?.html?.uid || testData.assets?.bufferUpload?.uid || testData.assets?.folder?.uid) || ''
7170
bulkCtUid1 = testData.contentTypes?.entryTestMedium?.uid || ''
7271
bulkCtUid2 = testData.contentTypes?.entryTestComplex?.uid || ''
73-
bulkCtTitle1 = 'Entry Test Medium'
7472
envName = testData.environments?.development?.name || 'development'
7573
clientWithManagementToken = contentstackClient()
7674
})

test/sanity-check/api/environment-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ describe('Environment API Tests', () => {
131131
// shared "development" env (testData.environments.development) used by
132132
// bulk operations, entry publish, release, workflow, etc.
133133
const tempName = `temp_rename_${Date.now()}`
134-
const tempEnv = await stack.environment().create({
134+
await stack.environment().create({
135135
environment: {
136136
name: tempName,
137137
urls: [{ locale: 'en-us', url: 'https://temp-rename.example.com' }]

0 commit comments

Comments
 (0)