File tree Expand file tree Collapse file tree
test/spec/api/query-tools Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { Request , Response } from 'express' ;
22import { getReadableFields , getBodyguardKeys } from '../bodyguard' ;
3- import { UserRole } from '../enums/user-role' ;
43
54import { createSearchQuery } from '../utils' ;
5+
66/**
77 * Get the objects represented by the request query
88 * @param request Request to query by
Original file line number Diff line number Diff line change @@ -4,9 +4,9 @@ import { ExampleRelation } from '../../../examples/api/models/example-relation';
44
55/**
66 * createSearchQuery()
7- * pointyapi/utils
7+ * pointyapi/query-tools
88 */
9- describe ( '[Utils ] createSearchQuery()' , ( ) => {
9+ describe ( '[QueryTools ] createSearchQuery()' , ( ) => {
1010 it ( 'can run where query' , ( ) => {
1111 const query = {
1212 where : {
Original file line number Diff line number Diff line change @@ -10,9 +10,9 @@ import { UserRole } from '../../../../src/enums';
1010
1111/**
1212 * getQuery()
13- * pointyapi/middleware
13+ * pointyapi/query-tools
1414 */
15- describe ( '[Middleware ] GetQuery' , ( ) => {
15+ describe ( '[QueryTools ] GetQuery' , ( ) => {
1616 beforeAll ( async ( ) => {
1717 // Create users
1818 this . user1 = new ExampleUser ( ) ;
Original file line number Diff line number Diff line change @@ -4,9 +4,9 @@ import { ExampleUser } from '../../../../src/models';
44
55/**
66 * queryValidator()
7- * pointyapi/utils
7+ * pointyapi/QueryTools
88 */
9- describe ( '[Utils ] queryValidator()' , ( ) => {
9+ describe ( '[QueryTools ] queryValidator()' , ( ) => {
1010 it ( 'returns true if the query is valid' , ( ) => {
1111 const { request, response } = createMockRequest ( ) ;
1212 request . query = { where : { id : 1 } } ;
You can’t perform that action at this time.
0 commit comments