inheritance.test.js 501 B

1234567891011121314151617
  1. 'use strict';
  2. const assume = require('assume');
  3. const SimpleClassTransport = require('./fixtures/simple-class-transport');
  4. const SimpleProtoTransport = require('./fixtures/simple-proto-transport');
  5. describe('Inheritance patterns', () => {
  6. it('TransportStream (class)', function () {
  7. const transport = new SimpleClassTransport();
  8. assume(transport);
  9. });
  10. it('TransportStream (prototypal)', function () {
  11. const transport = new SimpleProtoTransport();
  12. assume(transport);
  13. });
  14. });