@loopback/docs
Version:
Documentation for LoopBack 4
40 lines (26 loc) • 1.06 kB
Markdown
lang: en
title: 'API docs: testlab.itskippedontravis'
keywords: LoopBack 4.0, LoopBack 4
sidebar: lb4_sidebar
permalink: /doc/en/lb4/apidocs.testlab.itskippedontravis.html
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@loopback/testlab](./testlab.md) > [itSkippedOnTravis](./testlab.itskippedontravis.md)
## itSkippedOnTravis() function
> Warning: This API is now obsolete.
>
> Use `skipOnTravis(it, name, fn)` instead.
>
Helper function for skipping tests on Travis env - legacy variant supporting `it` only.
<b>Signature:</b>
```typescript
export declare function itSkippedOnTravis(expectation: string, callback?: TestFn): void;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| expectation | <code>string</code> | The test name (the first argument of <code>it</code> function). |
| callback | <code>TestFn</code> | The test function (the second argument of <code>it</code> function). |
<b>Returns:</b>
`void`