Skip to content

Commit

Permalink
started adding test outline
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgeGoodall committed May 30, 2024
1 parent 9b1ccfe commit b08cc89
Showing 1 changed file with 72 additions and 0 deletions.
72 changes: 72 additions & 0 deletions test/unit/responseDetails.test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,78 @@
import test from 'node:test'
import { pagination } from '../../src/models/responseDetails'
import { describe, it, expect } from 'vitest'

describe('ResponseDetails', () => {
// let responseDetails
// const mockResponse = [] // Fill with mock data
// const mockPagination = {} // Fill with mock data
// const mockColumnFieldLog = [] // Fill with mock data

// beforeEach(() => {
// // responseDetails = new ResponseDetails(mockResponse, mockPagination, mockColumnFieldLog)
// })

describe('getRows', () => {
test('returns the rows', () => {
// TODO: Write test
})

test('returns an empty array if there are no rows and logs an error', () => {

})
})

describe('getColumnFieldLog', () => {
test('returns the column field log', () => {
// TODO: Write test
})

test('returns an empty array if there is no column field log and logs an error', () => {

})
})

describe('getColumns', () => {
test('returns the columns', () => {

})

test('returns an empty array if there are no rows', () => {

})
})

test('getFields', () => {
// TODO: Write test
})

test('getFieldMappings', () => {
// TODO: Write test
})

describe('getRowsWithVerboseColumns', () => {
test('returns the rows with verbose columns', () => {

})

test('returns an empty array if there are no rows and logs an error', () => {

})
})

test('getGeometryKey', () => {
// TODO: Write test
})

test('getGeometries', () => {
// TODO: Write test
})

test('getPagination', () => {
// TODO: Write test
})
})

describe('Pagination', () => {
const testCases = [
{
Expand Down

0 comments on commit b08cc89

Please sign in to comment.