Skip to content
This repository has been archived by the owner on Feb 22, 2023. It is now read-only.

Commit

Permalink
fix build test, now this time i serious
Browse files Browse the repository at this point in the history
  • Loading branch information
totorogendut committed Apr 1, 2020
1 parent c0308c3 commit 18a6708
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/fund/errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ export const templateSinglePointerHasWeight =
// script json template
export const cannotParseScriptJson =
'Fundme.js: cannot parse JSON from <script fundme>. Make sure it contains a valid JSON.'
export const jsonTemplateIsInvalid = "Fundme.js: found <script fundme> but it's not an array."
export const jsonTemplateIsInvalid = "Fundme.js: found <script fundme> but it's not valid."
export const scriptFundmeIsNotApplicationJson =
'Fundme.js: found <script fundme> but its type is not "application/json"'
4 changes: 2 additions & 2 deletions src/fund/tests/template-throw.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { fund, getCurrentPointerAddress } from '../main'
import { noTemplateFound, jsonTemplateIsNotArray, cannotParseScriptJson, failParsingTemplate } from '../errors'
import { noTemplateFound, jsonTemplateIsInvalid, cannotParseScriptJson, failParsingTemplate } from '../errors'

describe('test scraping template crashes resulting right throw errors', () => {
test('fund() is called but no template is found', () => {
Expand All @@ -17,7 +17,7 @@ describe('test scraping template crashes resulting right throw errors', () => {
}
</script>
`
expect(() => fund()).toThrowError(jsonTemplateIsNotArray)
expect(() => fund()).toThrowError(jsonTemplateIsInvalid)
document.body.innerHTML = ''
})

Expand Down

0 comments on commit 18a6708

Please sign in to comment.