frontend/.pnpm-store/v3/files/7d/f3434a09da85014678670bf3a4d6a0c9283c247f385ab0f03a897fde1c84f4580cabd0f1bb078650b498420485270d9e9dd1ed1639cd78988ca894b126914a

12 lines
385 B
Plaintext

const test = require('ava');
const sinon = require('sinon');
const deprecated = require('../lib/deprecated');
const Log = require('../lib/log');
test('should show deprecation warnings and return compliant object', t => {
const log = sinon.createStubInstance(Log);
const config = deprecated({ keep: 1 }, log);
t.is(log.warn.callCount, 0);
t.deepEqual(config, { keep: 1 });
});