Skip to content

Commit

Permalink
refactor after feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
Ninarchive committed Dec 20, 2023
1 parent 87c8bcc commit 3e75a82
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 18 deletions.
3 changes: 3 additions & 0 deletions backend/src/controllers/tests/0-config-templates.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ const res = {

describe('config controller :: getTemplates', () => {
// This test breaks CI even when skipping, so it is commented out for now

// TODO: hmm, the rest is green but there is a weird error in the console
// TODO: What to do...
// --> Fix the required-at error (Hint: you probably don't want to go down this road;)
// --> Move getTemplates to a separate file (VSCode Extension: glean?)
/* it('returns all pug files in relative folder ./templates when !ENABLE_ROOT_TEMPLATES', async () => {
Expand Down
36 changes: 18 additions & 18 deletions frontend/src/components/admin/audit/spec/AuditChangeEntry.spec.tsx
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
import { render } from '@testing-library/react';
import {render} from '@testing-library/react';
import '@testing-library/jest-dom'
import { AuditLog, AuditModelTypes } from '../audit-models';
import { AuditChangeEntry } from '../AuditChangeEntry';
import {AuditLog, AuditModelTypes} from '../audit-models';
import {AuditChangeEntry} from '../AuditChangeEntry';

it.skip('AuditChangeEntry example test', () => {
describe('AuditChangeEntry', () => {
it('', () => {
const change: AuditLog = {
date: new Date(),
modelId: '5',
_id: '',
user: '',
model: 'client',
diff: [],
};
const modelType: AuditModelTypes = 'client'
render(<AuditChangeEntry change={change} modelType={modelType} />)
})


describe('AuditChangeEntry', () => {
it.skip('AuditChangeEntry example test', () => {
const change: AuditLog = {
date: new Date(),
modelId: '5',
_id: '',
user: '',
model: 'client',
diff: [],
};
const modelType: AuditModelTypes = 'client'
render(<AuditChangeEntry change={change} modelType={modelType} />)
})

})


0 comments on commit 3e75a82

Please sign in to comment.