@test('Get one customer') public async getCustomer() { let result = await getCustomer('CHOPS'); assert.isNotArray(result, 'Expected result NOT to be an array'); validateRecordColumns( { recordType: 'customer', functionName: 'getCustomer("CHOPS")' }, result, REQUIRED_CUSTOMER_COLS ); }
@test('Get one supplier') public async getSupplier() { let result = await getSupplier(1); assert.isNotArray(result, 'Expected result NOT to be an array'); validateRecordColumns( { recordType: 'supplier', functionName: 'getSupplier(1)' }, result, REQUIRED_SUPPLIER_COLS ); }
@test('Get one order') public async getOrder() { let result = await getOrder(10705); assert.isNotArray(result, 'Expected result NOT to be an array'); validateRecordColumns( { recordType: 'order', functionName: 'getOrder(10705)' }, result, REQUIRED_ORDER_COLS ); }
@test('Get one product') public async getProduct() { let result = await getProduct(1); assert.isNotArray(result, 'Expected result NOT to be an array'); validateRecordColumns( { recordType: 'product', functionName: 'getProduct(1)' }, result, REQUIRED_PRODUCT_COLS ); }
@test('Get one employee') public async getEmployee() { let result = await getEmployee(1); assert.isNotArray(result, 'Expected result NOT to be an array'); validateRecordColumns( { recordType: 'employee', functionName: 'getEmployee(1)' }, result, REQUIRED_EMPLOYEE_COLS ); }