diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index 8114be8a..8e536edb 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -41,7 +41,7 @@ parts: build-environment: - PATH: "$PATH:$SNAPCRAFT_PART_BUILD/node_modules/.bin" build-snaps: - - node/16/stable + - node/18/stable source: . override-build: | if [ -n "$http_proxy" ]; then diff --git a/src/__tests__/main/Filters.tsx b/src/__tests__/main/Filters.tsx index a616a269..3a768b51 100644 --- a/src/__tests__/main/Filters.tsx +++ b/src/__tests__/main/Filters.tsx @@ -2,9 +2,9 @@ import { applyFilters } from '../../main/modules/Filters/Filters'; describe('Should filter todos based on passed filters', () => { const todoObjects = [ - { id: 1, body: 'Test', created: null, complete: false, completed: null, priority: null, contexts: null, projects: ['Project 1'], due: '2023-01-01', dueString: '2023-01-01', t: null, tString: null, rec: null, hidden: false, pm: null, string: '' }, - { id: 2, body: 'Test', created: null, complete: true, completed: null, priority: null, contexts: null, projects: ['Project 2'], due: '2023-02-01', dueString: '2023-02-01', t: null, tString: null, rec: null, hidden: false, pm: null, string: '' }, - { id: 3, body: 'Test', created: null, complete: false, completed: null, priority: null, contexts: null, projects: ['Project 1'], due: '2023-03-01', dueString: '2023-03-01', t: null, tString: null, rec: null, hidden: false, pm: null, string: '' }, + { id: 1, body: 'Test', created: null, complete: false, completed: null, priority: null, contexts: null, projects: ['Project 1'], due: '2023-01-01', dueString: '2023-01-01', t: null, tString: null, rec: null, hidden: false, pm: null, visible: true, string: '' }, + { id: 2, body: 'Test', created: null, complete: true, completed: null, priority: null, contexts: null, projects: ['Project 2'], due: '2023-02-01', dueString: '2023-02-01', t: null, tString: null, rec: null, hidden: false, pm: null, visible: true, string: '' }, + { id: 3, body: 'Test', created: null, complete: false, completed: null, priority: null, contexts: null, projects: ['Project 1'], due: '2023-03-01', dueString: '2023-03-01', t: null, tString: null, rec: null, hidden: false, pm: null, visible: true, string: '' }, ]; test('should return all todo objects if no filters are provided', () => { @@ -18,8 +18,8 @@ describe('Should filter todos based on passed filters', () => { projects: [ { value: 'Project 1', exclude: false } ] } const expected = [ - { id: 1, body: 'Test', created: null, complete: false, completed: null, priority: null, contexts: null, projects: ['Project 1'], due: '2023-01-01', dueString: '2023-01-01', t: null, tString: null, rec: null, hidden: false, pm: null, string: '' }, - { id: 3, body: 'Test', created: null, complete: false, completed: null, priority: null, contexts: null, projects: ['Project 1'], due: '2023-03-01', dueString: '2023-03-01', t: null, tString: null, rec: null, hidden: false, pm: null, string: '' }, + { id: 1, body: 'Test', created: null, complete: false, completed: null, priority: null, contexts: null, projects: ['Project 1'], due: '2023-01-01', dueString: '2023-01-01', t: null, tString: null, rec: null, hidden: false, pm: null, visible: true, string: '' }, + { id: 3, body: 'Test', created: null, complete: false, completed: null, priority: null, contexts: null, projects: ['Project 1'], due: '2023-03-01', dueString: '2023-03-01', t: null, tString: null, rec: null, hidden: false, pm: null, visible: true, string: '' }, ]; const result = applyFilters(todoObjects, filters); expect(result).toEqual(expected);