'use strict';

var test = require('tape');

var eslintPluginPerfStandard = require('../index.js');

test('eslintPluginPerfStandard is a function', function t(assert) {
    assert.equal(typeof eslintPluginPerfStandard, 'function');
    assert.end();
});

@@ -12,20 +12,23 @@
 ';%0A%0Avar 
-test
+console
  = requi
@@ -35,120 +35,412 @@
 re('
-tap
+consol
 e');%0A
-%0A
 var 
-eslintPluginPerfStandard = require('../index.js');%0A%0Atest('eslintPluginPerfStandard is a function', 
+RuleTester = require('eslint').RuleTester;%0A%0Avar noInstanceofGuard = require('../rules/no-instanceof-guard.js');%0A%0Avar ruleTester = new RuleTester();%0A%0AruleTester.run('no-instanceof-gaurd', noInstanceofGuard, %7B%0A    valid: %5B%0A        %5B%0A            'function Foo() %7B',%0A            '    this.bar = %22bar%22;',%0A            '%7D'%0A        %5D.join('%5Cn')%0A    %5D,%0A    invalid: %5B%7B%0A        code: %5B%0A            '
 func
@@ -448,101 +448,327 @@
 ion 
-t(assert
+Foo(
 ) %7B
+',
 %0A    
-assert.equal(typeof eslintPluginPerfStandard, 'function');
+        '    if (!(this instanceof Foo)) return new Foo();',%0A            '    ',%0A            '    this.bar = %22bar%22;',%0A            '%7D'%0A        %5D.join('%5Cn'),
 %0A    
-assert.end();%0A%7D
+    errors: %5B%7B%0A            message: 'expected no instanceof gaurd in constructor'%0A        %7D%5D%0A    %7D%5D%0A%7D);%0A%0A/*eslint no-console: 0*/%0Aconsole.log('ok'
 );%0A

implement no-instanceof-guard