Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
Signed-off-by: JP Lomas <[email protected]>
  • Loading branch information
jplomas committed Nov 4, 2024
1 parent 60a0d63 commit 2ba4756
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cypress/e2e/2_calculate.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ describe('Calculate using an API call', () => {
});

it('Clicking the calculate button with placeholder data generates a result', () => {
cy.get('button').click();
cy.get('#submitForm').click();
cy.get('h2').should('contain.text', 'Result');
cy.get('pre').should('contain.text', '%');
});
Expand Down
4 changes: 3 additions & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ import prettierRecommended from 'eslint-plugin-prettier/recommended';
export default [
{
files: ['**/*.js', '**/*.cjs', '**/*.mjs'],
ignores: ['node_modules', 'coverage', 'dist'],
},
{
ignores: ['node_modules', 'coverage', 'dist', 'frontend/js/**/*'],
},
{
languageOptions: {
Expand Down
2 changes: 1 addition & 1 deletion frontend/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ <h5 class="modal-title" id="setIndicationsModalTitle">Set indications</h5>
</div>
</div>
</div>
<button class="btn btn-primary" @click="submitForm" :disabled="Object.keys(errors).length">Submit</button>
<button class="btn btn-primary" id="submitForm" @click="submitForm" :disabled="Object.keys(errors).length">Submit</button>
</v-form>
<div class="mt-3" v-if="result !== null">
<h2>Result</h2>
Expand Down
1 change: 0 additions & 1 deletion src/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ function createServer() {
});

// return frontend elements page if called
console.log(path.join(__dirname, '../frontend'));
app.use(express.static(path.join(__dirname, '../frontend')));

app.get('/schema.json', (req, res) => {
Expand Down

0 comments on commit 2ba4756

Please sign in to comment.