1616* limitations under the License.
1717*/
1818
19- /* eslint-disable object-curly-newline */
20-
2119'use strict' ;
2220
2321// MODULES //
2422
2523var tape = require ( 'tape' ) ;
26- var hasSameConstructor = require ( './../lib' )
24+ var hasSameConstructor = require ( './../lib' ) ;
2725
2826
2927// TESTS //
@@ -35,102 +33,100 @@ tape( 'main export is a function', function test( t ) {
3533} ) ;
3634
3735tape ( 'compare two null values' , function test ( t ) {
38- var bool ;
36+ var bool ;
3937
40- bool = hasSameConstructor ( null , null )
41- t . strictEqual ( bool , false , 'returns false for null and null' )
38+ bool = hasSameConstructor ( null , null ) ;
39+ t . strictEqual ( bool , false , 'returns false for null and null' ) ;
4240
43- t . end ( )
44- } )
41+ t . end ( ) ;
42+ } ) ;
4543
4644tape ( 'compare two Number objects' , function test ( t ) {
47- var bool ;
48-
49- bool = hasSameConstructor ( new Number ( 5 ) , new Number ( 10 ) ) ;
50- t . strictEqual ( bool , true , 'returns true for matching Number objects' ) ;
51-
52- t . end ( ) ;
45+ var bool ;
46+
47+ bool = hasSameConstructor ( new Number ( 5 ) , new Number ( 10 ) ) ;
48+ t . strictEqual ( bool , true , 'returns true for matching Number objects' ) ;
49+
50+ t . end ( ) ;
5351} ) ;
5452
5553tape ( 'compare two Arrays' , function test ( t ) {
56- var bool ;
57-
58- bool = hasSameConstructor ( [ ] , [ ] ) ;
59- t . strictEqual ( bool , true , 'returns true for matching Arrays' ) ;
60-
61- t . end ( ) ;
54+ var bool ;
55+
56+ bool = hasSameConstructor ( [ ] , [ ] ) ;
57+ t . strictEqual ( bool , true , 'returns true for matching Arrays' ) ;
58+
59+ t . end ( ) ;
6260} ) ;
6361
6462tape ( 'compare Number and Array' , function test ( t ) {
65- var bool ;
66-
67- bool = hasSameConstructor ( new Number ( 5 ) , [ ] ) ;
68- t . strictEqual ( bool , false , 'returns false for different constructors' ) ;
69-
70- t . end ( ) ;
63+ var bool ;
64+
65+ bool = hasSameConstructor ( new Number ( 5 ) , [ ] ) ;
66+ t . strictEqual ( bool , false , 'returns false for different constructors' ) ;
67+
68+ t . end ( ) ;
7169} ) ;
7270
7371tape ( 'compare two null values' , function test ( t ) {
74- var bool ;
75-
76- bool = hasSameConstructor ( null , null ) ;
77- t . strictEqual ( bool , false , 'returns false for null and null' ) ;
78-
79- t . end ( ) ;
72+ var bool ;
73+
74+ bool = hasSameConstructor ( null , null ) ;
75+ t . strictEqual ( bool , false , 'returns false for null and null' ) ;
76+
77+ t . end ( ) ;
8078} ) ;
8179
8280tape ( 'compare two undefined values' , function test ( t ) {
83- var bool ;
84-
85- bool = hasSameConstructor ( undefined , undefined ) ;
86- t . strictEqual ( bool , false , 'returns false for undefined and undefined' ) ;
87-
88- t . end ( ) ;
81+ var bool ;
82+
83+ bool = hasSameConstructor ( undefined , undefined ) ;
84+ t . strictEqual ( bool , false , 'returns false for undefined and undefined' ) ;
85+
86+ t . end ( ) ;
8987} ) ;
9088
9189tape ( 'compare null and Number object' , function test ( t ) {
92- var bool ;
93-
94- bool = hasSameConstructor ( null , new Number ( 5 ) ) ;
95- t . strictEqual ( bool , false , 'returns false for null and Number object' ) ;
96-
97- t . end ( ) ;
90+ var bool ;
91+
92+ bool = hasSameConstructor ( null , new Number ( 5 ) ) ;
93+ t . strictEqual ( bool , false , 'returns false for null and Number object' ) ;
94+
95+ t . end ( ) ;
9896} ) ;
9997
10098tape ( 'compare undefined and Array' , function test ( t ) {
101- var bool ;
102-
103- bool = hasSameConstructor ( undefined , [ ] ) ;
104- t . strictEqual ( bool , false , 'returns false for undefined and Array' ) ;
105-
106- t . end ( ) ;
99+ var bool ;
100+
101+ bool = hasSameConstructor ( undefined , [ ] ) ;
102+ t . strictEqual ( bool , false , 'returns false for undefined and Array' ) ;
103+
104+ t . end ( ) ;
107105} ) ;
108106
109107tape ( 'compare two number primitives' , function test ( t ) {
110- var bool ;
111-
112- bool = hasSameConstructor ( 5 , 5 ) ;
113- t . strictEqual ( bool , true , 'returns true for matching number primitives' ) ;
114-
115- t . end ( ) ;
108+ var bool ;
109+
110+ bool = hasSameConstructor ( 5 , 5 ) ;
111+ t . strictEqual ( bool , true , 'returns true for matching number primitives' ) ;
112+
113+ t . end ( ) ;
116114} ) ;
117115
118116tape ( 'compare number and string primitives' , function test ( t ) {
119- var bool ;
120-
121- bool = hasSameConstructor ( 5 , 'hello' ) ;
122- t . strictEqual ( bool , false , 'returns false for different primitive types' ) ;
123-
124- t . end ( ) ;
117+ var bool ;
118+
119+ bool = hasSameConstructor ( 5 , 'hello' ) ;
120+ t . strictEqual ( bool , false , 'returns false for different primitive types' ) ;
121+
122+ t . end ( ) ;
125123} ) ;
126124
127125tape ( 'compare number primitive and Number object' , function test ( t ) {
128- var bool ;
129-
130- bool = hasSameConstructor ( 5 , new Number ( 5 ) ) ;
131- t . strictEqual ( bool , true , 'returns true for matching number primitive and object' ) ;
132-
133- t . end ( ) ;
134- } ) ;
126+ var bool ;
135127
128+ bool = hasSameConstructor ( 5 , new Number ( 5 ) ) ;
129+ t . strictEqual ( bool , true , 'returns true for matching number primitive and object' ) ;
136130
131+ t . end ( ) ;
132+ } ) ;
0 commit comments