Skip to content

Commit 17ae5ce

Browse files
Adding default user agent (#39)
* Adding default user agent * Removing unnecessary expect conditions
1 parent 6b6e675 commit 17ae5ce

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

.github/workflows/openapi.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ jobs:
3030
-p licenseName="SEE LICENSE IN LICENSE.md"
3131
--git-user-id lilt
3232
--git-repo-id lilt-node
33+
--http-user-agent Lilt_Client_Library-Node
3334
--skip-validate-spec
3435
-o .
3536
- name: Create Pull Request

workflow_tests/testVerifiedTranslation.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,10 @@ function expectCreateJobResponse(expect, createJobResponse) {
3232
expect(createJobResponse.due).to.not.be.null
3333
expect(createJobResponse.id).to.not.be.null
3434
expect(createJobResponse.isProcessing).to.equal(0)
35-
expect(createJobResponse.stats.exactWords).to.equal(0)
36-
expect(createJobResponse.stats.fuzzyWords).to.equal(0)
37-
expect(createJobResponse.stats.newWords).to.equal(0)
3835
expect(createJobResponse.stats.numDeliveredProjects).to.equal(0)
39-
expect(createJobResponse.stats.numLanguagePairs).to.equal(1)
40-
expect(createJobResponse.stats.numProjects).to.equal(1)
4136
expect(createJobResponse.stats.percentReviewed).to.equal(0)
4237
expect(createJobResponse.stats.percentTranslated).to.equal(0)
4338
expect(createJobResponse.stats.projects).to.be.an('array')
44-
expect(createJobResponse.stats.sourceWords).to.equal(0)
4539
expect(createJobResponse.stats.uniqueLanguagePairs).to.equal(1)
4640
expect(createJobResponse.stats.uniqueLinguists).to.equal(0)
4741
expect(createJobResponse.stats.workflowStatus).to.equal("READY_TO_START")

0 commit comments

Comments
 (0)