From c7e9d10f0b7d1c068612bc8174dd3c5dc02d87d8 Mon Sep 17 00:00:00 2001 From: Vojta Jina Date: Thu, 9 Oct 2014 14:04:13 -0700 Subject: [PATCH] test(transpiler): add spec for instanceof --- tools/transpiler/spec/instance_of_spec.js | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 tools/transpiler/spec/instance_of_spec.js diff --git a/tools/transpiler/spec/instance_of_spec.js b/tools/transpiler/spec/instance_of_spec.js new file mode 100644 index 0000000000..19753dba46 --- /dev/null +++ b/tools/transpiler/spec/instance_of_spec.js @@ -0,0 +1,11 @@ +import {describe, it, expect} from 'test_lib/test_lib'; + +class Foo {} + +export function main() { + describe('instanceof', function() { + it('should work', function() { + expect(new Foo() instanceof Foo); + }); + }); +}