Skip to content

Commit 902835b

Browse files
committed
fix failing unit tests
1 parent c623826 commit 902835b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/jest/__tests__/store/cffstr.jest.spec.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ describe('useCffstr', () => {
1212
})
1313
describe('initial content', () => {
1414
it('should only have fields with defaults', () => {
15-
const expected = generatedBy + "cff-version: 1.2.0\ntitle: ''\nmessage: ''\ntype: software\nauthors: []\n"
15+
const expected = generatedBy + "cff-version: 1.2.0\ntitle: ''\nmessage: >-\n If you use this software, please cite it using the\n metadata from this file.\ntype: software\nauthors: []\n"
1616
expect(cffstr.value).toEqual(expected)
1717
})
1818
})
@@ -23,7 +23,7 @@ describe('useCffstr', () => {
2323
})
2424

2525
it('should have title', () => {
26-
const expected = generatedBy + "cff-version: 1.2.0\ntitle: sometitle\nmessage: ''\ntype: software\nauthors: []\n"
26+
const expected = generatedBy + "cff-version: 1.2.0\ntitle: sometitle\nmessage: >-\n If you use this software, please cite it using the\n metadata from this file.\ntype: software\nauthors: []\n"
2727
expect(cffstr.value).toEqual(expected)
2828
})
2929
})
@@ -34,7 +34,7 @@ describe('useCffstr', () => {
3434
})
3535

3636
it('should have a keyword', () => {
37-
const expected = generatedBy + "cff-version: 1.2.0\ntitle: ''\nmessage: ''\ntype: software\nauthors: []\nkeywords:\n - keyword1\n"
37+
const expected = generatedBy + "cff-version: 1.2.0\ntitle: ''\nmessage: >-\n If you use this software, please cite it using the\n metadata from this file.\ntype: software\nauthors: []\nkeywords:\n - keyword1\n"
3838
expect(cffstr.value).toEqual(expected)
3939
})
4040
})
@@ -45,7 +45,7 @@ describe('useCffstr', () => {
4545
})
4646

4747
it('should have a identifier', () => {
48-
const expected = generatedBy + "cff-version: 1.2.0\ntitle: ''\nmessage: ''\ntype: software\nauthors: []\nidentifiers:\n - type: doi\n value: 10.5281/zenodo.5171937\n"
48+
const expected = generatedBy + "cff-version: 1.2.0\ntitle: ''\nmessage: >-\n If you use this software, please cite it using the\n metadata from this file.\ntype: software\nauthors: []\nidentifiers:\n - type: doi\n value: 10.5281/zenodo.5171937\n"
4949
expect(cffstr.value).toEqual(expected)
5050
})
5151
})

0 commit comments

Comments
 (0)