本文整理汇总了TypeScript中chai.assert.isNotArray方法的典型用法代码示例。如果您正苦于以下问题:TypeScript assert.isNotArray方法的具体用法?TypeScript assert.isNotArray怎么用?TypeScript assert.isNotArray使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类chai.assert
的用法示例。
在下文中一共展示了assert.isNotArray方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: getCustomer
@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
);
}
示例2: getSupplier
@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
);
}
示例3: getOrder
@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
);
}
示例4: getProduct
@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
);
}
示例5: getEmployee
@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
);
}