Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v0.7.1 bump + API tests #337

Merged
merged 4 commits into from
Jan 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@ jobs:
- name: Service tests
run: yarn test:service --ci --coverage --maxWorkers=2

- name: API tests
run: yarn test:api --ci --coverage --maxWorkers=2

- name: Anonymous integration tests
run: yarn test:integration:zk --ci --coverage

Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed

- Removed `nullifier` from vote package.
- Returning census from type `CspCensus` when election is for CSP.

### Added

- Added `ArchivedAccountData` for dealing with archived accounts and new `fetchAccount` function in client.
- Added `ErrFaucetAlreadyFunded` for faucet limit requests.
- Added `ErrElectionFinished` for doing actions when election is finished.
- Added `submitVoteSteps` for voting using async generator steps.

## [0.7.0] - 2023-12-13

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@vocdoni/sdk",
"author": "Vocdoni",
"version": "0.7.0",
"version": "0.7.1",
"description": "⚒️An SDK for building applications on top of Vocdoni API",
"repository": "https://github.com/vocdoni/vocdoni-sdk.git",
"license": "AGPL-3.0-or-later",
Expand Down
5 changes: 3 additions & 2 deletions test/api/vote.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ const createElection = (census, electionType?, voteType?) => {
const election = Election.from({
title: 'SDK Testing - Title',
description: 'SDK Testing - Description',
endDate: new Date().getTime() + 12000,
startDate: new Date().getTime() + 24000,
endDate: new Date().getTime() + 36000,
census,
electionType: electionType ?? null,
voteType: voteType ?? null,
Expand Down Expand Up @@ -75,5 +76,5 @@ describe('Vote API tests', () => {
await expect(async () => {
await client.submitVote(vote);
}).rejects.toThrow(ErrElectionFinished);
}, 85000);
}, 120000);
});