refactor(tests): remove BOT_TOKEN from environment mocks in order and slots tests
- Eliminated the hardcoded BOT_TOKEN from the environment mock in both orders.test.js and slots.test.js to streamline test configurations and improve security practices.
This commit is contained in:
parent
6b461c682b
commit
ce75f0c13d
@ -14,7 +14,6 @@ vi.mock('./slots');
|
||||
vi.mock('../config/env', () => {
|
||||
return {
|
||||
env: {
|
||||
BOT_TOKEN: 'test',
|
||||
LOGIN_GRAPHQL: 'test',
|
||||
PASSWORD_GRAPHQL: 'test',
|
||||
URL_GRAPHQL: 'test',
|
||||
|
||||
@ -16,7 +16,6 @@ vi.mock('./services');
|
||||
vi.mock('../config/env', () => {
|
||||
return {
|
||||
env: {
|
||||
BOT_TOKEN: 'test',
|
||||
LOGIN_GRAPHQL: 'test',
|
||||
PASSWORD_GRAPHQL: 'test',
|
||||
URL_GRAPHQL: 'test',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user