   (let [buffer (buf/allocate 16 {:type :direct :impl :netty})]
     (t/is (.isDirect buffer))
     (t/is (instance? ByteBuf buffer))))
+
+#+cljs
+(t/deftest allocate-direct-es6-buffer
+  (let [buffer (buf/allocate 16 {:impl :es6})]
+    (t/is (instance? js/DataView buffer))))
+
+;; #+cljs
+;; (t/deftest allocate-direct-node-buffer
+;;   (let [bf (js/require "buffer")
+;;         bf (.-Buffer bf)
+;;         buffer (buf/allocate 16 {:impl :node})]
+;;     (t/is (instance? bf buffer))))
 
 #+clj
 (t/deftest spec-constructor

              (t/is (= readed (buf/size spec)))
              (t/is (= data data')))))))))

;; #+clj
;; (t/deftest spec-data-with-dynamic-types-single
;;   (let [spec (buf/spec (buf/string*))

  (:require #+clj [clojure.test :as t]
            #+cljs [cljs.test :as t]
            [bytebuf.core :as buf]
            [bytebuf.buffer :as impl]
            [bytebuf.bytes :as bytes])
  #+clj
  (:import java.nio.ByteBuffer
