UNPKG

node-simple-ipc

Version:

A Node.Js module for local Inter Process Communication

20 lines 710 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const remote_error_1 = require("./remote-error"); describe('RemoteError', function () { it('should contain all expected properties', function () { const err = new remote_error_1.RemoteError('Remote error.', { message: 'Remote message.', stack: 'stk', name: 'Error', }); expect(err.name).toEqual('RemoteError'); expect(err.message).toEqual('Remote error.'); expect(err.remoteError).toEqual({ message: 'Remote message.', stack: 'stk', name: 'Error', }); }); }); //# sourceMappingURL=remote-error.spec.js.map