Skip to content

Commit

Permalink
fix lint issues and test (#186)
Browse files Browse the repository at this point in the history
  • Loading branch information
csuvajit committed May 3, 2024
1 parent 22769d4 commit 855259a
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/login.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ describe('root', () => {
const result = await client.login({
email: process.env.EMAIL!,
password: process.env.PASSWORD!,
keyCount: 10,
keyCount: 2,
keyName: 'prod_key'
});
console.log({
result: result.join(',')
result: result.length
});
expect(result).toBeDefined();
}, 60_000);
Expand Down
26 changes: 24 additions & 2 deletions src/util/Constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,18 @@ export const ElixirTroops = [
'Root Rider'
];

export const DarkElixirTroops = ['Minion', 'Hog Rider', 'Valkyrie', 'Golem', 'Witch', 'Lava Hound', 'Bowler', 'Ice Golem', 'Headhunter', 'Apprentice Warden'];
export const DarkElixirTroops = [
'Minion',
'Hog Rider',
'Valkyrie',
'Golem',
'Witch',
'Lava Hound',
'Bowler',
'Ice Golem',
'Headhunter',
'Apprentice Warden'
];

export const HomeTroops = [...ElixirTroops, ...DarkElixirTroops];

Expand Down Expand Up @@ -87,7 +98,18 @@ export const BuilderTroops = [

export const Heroes = ['Barbarian King', 'Archer Queen', 'Grand Warden', 'Royal Champion', 'Battle Machine', 'Battle Copter'];

export const HeroPets = ['L.A.S.S.I', 'Electro Owl', 'Mighty Yak', 'Unicorn', 'Poison Lizard', 'Diggy', 'Frosty', 'Phoenix', 'Spirit Fox', 'Angry Jelly'];
export const HeroPets = [
'L.A.S.S.I',
'Electro Owl',
'Mighty Yak',
'Unicorn',
'Poison Lizard',
'Diggy',
'Frosty',
'Phoenix',
'Spirit Fox',
'Angry Jelly'
];

export const UnrankedLeagueData = {
id: 29000000,
Expand Down

1 comment on commit 855259a

@csuvajit
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deploy preview for clashofclans-js ready!

✅ Preview
https://clashofclans-qnnu3ao7l-suvajits-projects-c2b2fd4a.vercel.app

Built with commit 855259a.
This pull request is being automatically deployed with vercel-action

Please sign in to comment.