Re: [whatwg/streams] Port some TransformStream tests to wpt (#531)

marvinhagemeister commented on this pull request.



> @@ -0,0 +1,15 @@
+'use strict';
+
+if (self.importScripts) {
+  self.importScripts('/resources/testharness.js');
+}
+
+test(() => {
+  const ts = new TransformStream({ transform() { } });
+}, 'TransformStream can be constructed with a transform function');
+
+test(() => {
+  const error = new TypeError('something bad');
+  assert_throws(error, () => new TransformStream(), 'TransformStream cannot be constructed with no arguments');

agree, that looks cleaner

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/pull/531

Received on Friday, 14 October 2016 16:22:37 UTC