UNPKG

cdk-lambda-subminute

Version:

A construct for deploying a Lambda function that can be invoked every time unit less than one minute.

19 lines (12 loc) 282 B
'use strict'; var Buffer = require('../../').Buffer; var assert = require('assert'); assert.doesNotThrow(function() { Buffer.allocUnsafe(10); }); assert.throws(function() { Buffer.from(10, 'hex'); }); assert.doesNotThrow(function() { Buffer.from('deadbeaf', 'hex'); });