diff --git a/.eslintrc.js b/.eslintrc.js index 4e57c5c7f..dd4bcd0d3 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -11,7 +11,7 @@ module.exports = { browser : true, node : true }, - plugins : ['react'], + plugins : ['react', 'jest'], rules : { /** Errors **/ 'camelcase' : ['error', { properties: 'never' }], @@ -24,7 +24,7 @@ module.exports = { 'react/jsx-no-bind' : ['error', { allowArrowFunctions: true }], 'react/jsx-uses-react' : 'error', 'react/prefer-es6-class' : ['error', 'never'], - 'jest/valid-expect' : ['error', { maxArgs: 2 }], + 'jest/valid-expect' : ['error', { maxArgs: 3 }], /** Warnings **/ 'max-lines' : ['warn', { diff --git a/changelog.md b/changelog.md index 11b1a1aba..c40aa625b 100644 --- a/changelog.md +++ b/changelog.md @@ -80,9 +80,15 @@ pre { ## changelog For a full record of development, visit our [Github Page](https://github.com/naturalcrit/homebrewery). -### XXXXday DD/MM/2023 - v3.8.0 +### Wednesday 12/04/2023 - v3.8.0 {{taskList +##### calculuschild + +* [x] Rename `{{coverPage}}` to `{{frontCover}}`. Those using this {{beta BETA}} feature will need to update that text to make the cover page appear again. + +* [x] Several background fixes to test scripts + ##### Jeddai * [X] Add content negotiation to exclude image requests from our API calls @@ -95,11 +101,48 @@ Fixes issue [#2595](https://github.com/naturalcrit/homebrewery/issues/2595) Fixes issues [#2657](https://github.com/naturalcrit/homebrewery/issues/2657) -* [x] Fix internal links inside `
{this.props.brew.description || 'No description.'}
+{this.getAuthors()}
+{this.getTags()}
+{this.getSystems()}
+{Moment(this.props.brew.updatedAt).fromNow()}
+text
text
{{}}
`); + expect(rendered, `Input:\n${source}`, { showPrefix: false }).toBe(`{{}}
`); }); it.failing('Renders a div with a single class', function() { const source = dedent`{{cat - + }}`; const rendered = Markdown.render(source).trimReturns(); // FIXME: adds two extra \s before closing `>` in opening tag - expect(rendered, `Input:\n${source}`, { showPrefix: false }, `Input:\n${source}`, { showPrefix: false }).toBe(``); + expect(rendered, `Input:\n${source}`, { showPrefix: false }).toBe(``); }); it.failing('Renders a div with a single class and text', function() { @@ -170,7 +170,7 @@ describe(`Block: When using the Block syntax {{tags\\ntext\\n}}`, ()=>{ }}`; const rendered = Markdown.render(source).trimReturns(); // FIXME: adds two extra \s before closing `>` in opening tag - expect(rendered, `Input:\n${source}`, { showPrefix: false }, `Input:\n${source}`, { showPrefix: false }).toBe(`Sample text.
Sample text.
Sample text.
Sample text.
| Experience Points | Level |
|---|---|
| 0 | 1 |
| 300 | 2 |