Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@sap-cloud-sdk/test-util

Package Overview
Dependencies
Maintainers
6
Versions
2615
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sap-cloud-sdk/test-util

SAP Cloud SDK for JavaScript test utilities

Source
npmnpm
Version
1.18.2-alpha.16
Version published
Weekly downloads
4.7K
-4.4%
Maintainers
6
Weekly downloads
 
Created
Source

SAP Cloud SDK for JavaScript Logo

@sap-cloud-sdk/test-util

Package that contains utility functions for testing, like loading credentials or creating test destinations.

Installation

$ npm install @sap-cloud-sdk/test-util

Usage

The test-util package makes writing tests for your SAP Cloud Platform application more convenient.

For example, you can create a mock destination for your tests by using the function mockTestDestination.

import { mockTestDestination } from '@sap-cloud-sdk/util';
mockTestDestination('mockDestinationName');

You need to save your system information in local file systems.json:

{
    "systems": [
        {
            "alias": "mockDestinationName",
            "uri": "https://www.example.com"
        }
    ]
}

and credentials.json:

{
  "credentials": [
    {
      "alias": "SYS_001",
      "username": "username",
      "password": "password"
    }
  ]
}

Api documentation

https://sap.github.io/cloud-sdk/api/

Keywords

sap-cloud-sdk

FAQs

Package last updated on 07 Apr 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts