const customembed = require('../lib/customembed'); const assert = require('assert'); describe('customembed', () => { describe('#filter', () => { it('rejects plain-HTTP inputs', () => { const input = ''; assert.throws(() => { customembed.filter(input) }, /must be HTTPS/); }); it('rejects plain-HTTP inputs', () => { const input = ''; assert.throws(() => { customembed.filter(input) }, /must be HTTPS/); }); it('rejects plain-HTTP '; assert.throws(() => { customembed.filter(input) }, /must be HTTPS/); }); }); });