Get the machine ready by updating the software repository and then upgrading any outdated libraries.
sudo apt update
sudo apt upgradeTo avoid any conflicting packages on the machine run
| a9497e5ea2499b1db75b8bfde54c0eab |
| { | |
| "info": { | |
| "_postman_id": "aa2c06b6-d91e-49f8-924e-6f55cebf0650", | |
| "name": "TLIP API KRA", | |
| "description": "Global Trade and Supply Chain", | |
| "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", | |
| "_exporter_id": "5475691", | |
| "_collection_link": "https://lunar-moon-491203.postman.co/workspace/TLIP~72f3d10b-4374-4f37-9afa-076cc7b73433/collection/30834798-aa2c06b6-d91e-49f8-924e-6f55cebf0650?action=share&source=collection_link&creator=5475691" | |
| }, | |
| "item": [ |
| const assert = require("assert"); | |
| function describe(testcase, callback) { | |
| console.log(testcase); | |
| callback(); | |
| } | |
| function it(description, callback) { | |
| try { | |
| callback(); |
| function it(description, callback) { | |
| try { | |
| callback(); | |
| console.log(`\t ✓ ${description}`); | |
| } catch (e) { | |
| console.log(`\t x ${description}`); | |
| } | |
| } |
| const assert = require("assert"); | |
| // .. code | |
| function expect(actual) { | |
| return { | |
| toEqual(expected) { | |
| assert.equal(actual, expected); | |
| }, | |
| toBe(expected) { |
| function describe(testcase, callback) { | |
| console.log(testcase); | |
| callback(); | |
| } | |
| function it(description, callback) { | |
| callback(); | |
| } | |
| function expect(actualVal) { |
| describe('Calculator', () => { | |
| it('should get the sum of two numbers', () => { | |
| const sum = sum(5, 5); | |
| expect(sum).toEqual(10); | |
| }); | |
| }); |
| function sum (num1, num2) { | |
| return num1 + num2 | |
| } |
| export async function addVehicle(userId, vehicle) { | |
| const data = await api.addVehicle(userId, vehicle, axios); | |
| return dispatch({type: types.ADD_VEHICLE, data: {vehicle: data.data.addVehicle}}); | |
| } | |
| export async function updateVehicle(vehicle, index) { | |
| const data = api.updateVehicle(vehicle, axios); | |
| return dispatch({type:types.UPDATE_VEHICLE, data: {vehicle: data.data.updateVehicle, index}}) | |
| } |