Skip to content

Commit b73f49d

Browse files
Fixed PR comments
1 parent 7ab32fb commit b73f49d

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed

.talismanrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ fileignoreconfig:
6262
- filename: packages/contentstack-seed/tests/contentstack.test.ts
6363
checksum: b7c753682ba8e8105caf026ba4dae3b02864b621b98d47e57cd3c6d6107283e5
6464
- filename: packages/contentstack-seed/tests/importer.test.ts
65-
checksum: d0ec09e201303037a8d6d8226da0f19cd1da6962b58fa753f4ae39d18c28ea11
65+
checksum: 51028781604ba60fa32b37d5a3bdde76f888694ef669c10f74eeb97e8410883e
6666
- filename: packages/contentstack-seed/tests/interactive.test.ts
6767
checksum: 7ade4a6fa1a37089458c72e1bbe3c5b3844c3169ec1e0da9fd3a944a21dc433b
6868
- filename: packages/contentstack-seed/tests/seeder.test.ts

packages/contentstack-seed/tests/importer.test.ts

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ describe('importer', () => {
1919

2020
test('should build import arguments without alias', () => {
2121
const options = {
22-
api_key: 'blt1234567890',
22+
api_key: '1234567890',
2323
tmpPath: '/var/tmp',
2424
master_locale: 'en-us',
2525
cmaHost: 'https://api.contentstack.io',
@@ -30,17 +30,17 @@ describe('importer', () => {
3030
const importPath = '/var/tmp/stack';
3131
const expectedArgs = ['-k', options.api_key, '-d', importPath];
3232

33-
expect(expectedArgs).toEqual(['-k', 'blt1234567890', '-d', '/var/tmp/stack']);
33+
expect(expectedArgs).toEqual(['-k', '1234567890', '-d', '/var/tmp/stack']);
3434
expect(expectedArgs).toHaveLength(4);
3535
expect(expectedArgs[0]).toBe('-k');
36-
expect(expectedArgs[1]).toBe('blt1234567890');
36+
expect(expectedArgs[1]).toBe('1234567890');
3737
expect(expectedArgs[2]).toBe('-d');
3838
expect(expectedArgs[3]).toBe('/var/tmp/stack');
3939
});
4040

4141
test('should build import arguments with alias', () => {
4242
const options = {
43-
api_key: 'blt1234567890',
43+
api_key: '1234567890',
4444
tmpPath: '/var/tmp',
4545
master_locale: 'en-us',
4646
cmaHost: 'https://api.contentstack.io',
@@ -52,25 +52,25 @@ describe('importer', () => {
5252
const importPath = '/var/tmp/stack';
5353
const expectedArgs = ['-k', options.api_key, '-d', importPath, '--alias', options.alias];
5454

55-
expect(expectedArgs).toEqual(['-k', 'blt1234567890', '-d', '/var/tmp/stack', '--alias', 'my-alias']);
55+
expect(expectedArgs).toEqual(['-k', '1234567890', '-d', '/var/tmp/stack', '--alias', 'my-alias']);
5656
expect(expectedArgs).toHaveLength(6);
5757
expect(expectedArgs[4]).toBe('--alias');
5858
expect(expectedArgs[5]).toBe('my-alias');
5959
});
6060

6161
test('should add skip-audit flag to arguments', () => {
62-
const baseArgs = ['-k', 'blt1234567890', '-d', '/var/tmp/stack'];
62+
const baseArgs = ['-k', '1234567890', '-d', '/var/tmp/stack'];
6363
const finalArgs = baseArgs.concat('--skip-audit');
6464

65-
expect(finalArgs).toEqual(['-k', 'blt1234567890', '-d', '/var/tmp/stack', '--skip-audit']);
65+
expect(finalArgs).toEqual(['-k', '1234567890', '-d', '/var/tmp/stack', '--skip-audit']);
6666
expect(finalArgs).toHaveLength(5);
6767
expect(finalArgs[4]).toBe('--skip-audit');
6868
});
6969

7070
test('should handle importer options validation', () => {
7171
const options = {
7272
master_locale: 'en-us',
73-
api_key: 'blt1234567890',
73+
api_key: '1234567890',
7474
tmpPath: '/var/tmp',
7575
cmaHost: 'https://api.contentstack.io',
7676
cdaHost: 'https://cdn.contentstack.io',
@@ -79,7 +79,7 @@ describe('importer', () => {
7979
};
8080

8181
expect(options.master_locale).toBe('en-us');
82-
expect(options.api_key).toBe('blt1234567890');
82+
expect(options.api_key).toBe('1234567890');
8383
expect(options.tmpPath).toBe('/var/tmp');
8484
expect(options.cmaHost).toBe('https://api.contentstack.io');
8585
expect(options.cdaHost).toBe('https://cdn.contentstack.io');
@@ -119,7 +119,7 @@ describe('importer', () => {
119119
run: jest.fn().mockResolvedValue(undefined)
120120
};
121121

122-
const args = ['-k', 'blt1234567890', '-d', '/var/tmp/stack', '--skip-audit'];
122+
const args = ['-k', '1234567890', '-d', '/var/tmp/stack', '--skip-audit'];
123123

124124
await mockImportCommand.run(args);
125125

@@ -129,21 +129,21 @@ describe('importer', () => {
129129
test('should handle import with different locales', () => {
130130
const options = {
131131
master_locale: 'fr-fr',
132-
api_key: 'blt1234567890',
132+
api_key: '1234567890',
133133
tmpPath: '/var/tmp',
134134
cmaHost: 'https://api.contentstack.io',
135135
cdaHost: 'https://cdn.contentstack.io',
136136
isAuthenticated: true
137137
};
138138

139139
expect(options.master_locale).toBe('fr-fr');
140-
expect(options.api_key).toBe('blt1234567890');
140+
expect(options.api_key).toBe('1234567890');
141141
});
142142

143143
test('should handle import with different hosts', () => {
144144
const options = {
145145
master_locale: 'en-us',
146-
api_key: 'blt1234567890',
146+
api_key: '1234567890',
147147
tmpPath: '/var/tmp',
148148
cmaHost: 'https://api.contentstack.io',
149149
cdaHost: 'https://cdn.contentstack.io',
@@ -172,14 +172,14 @@ describe('importer', () => {
172172
});
173173

174174
test('should handle argument array construction', () => {
175-
const apiKey = 'blt1234567890';
175+
const apiKey = '1234567890';
176176
const importPath = '/var/tmp/stack';
177177
const alias = 'my-alias';
178178

179179
const argsWithoutAlias = ['-k', apiKey, '-d', importPath];
180180
const argsWithAlias = ['-k', apiKey, '-d', importPath, '--alias', alias];
181181

182-
expect(argsWithoutAlias).toEqual(['-k', 'blt1234567890', '-d', '/var/tmp/stack']);
183-
expect(argsWithAlias).toEqual(['-k', 'blt1234567890', '-d', '/var/tmp/stack', '--alias', 'my-alias']);
182+
expect(argsWithoutAlias).toEqual(['-k', '1234567890', '-d', '/var/tmp/stack']);
183+
expect(argsWithAlias).toEqual(['-k', '1234567890', '-d', '/var/tmp/stack', '--alias', 'my-alias']);
184184
});
185185
});

0 commit comments

Comments
 (0)