mirror of
				https://github.com/theoludwig/eslint-config-conventions.git
				synced 2025-10-21 07:35:11 +02:00 
			
		
		
		
	test: fix with new rules introduced
This commit is contained in:
		| @@ -2,13 +2,13 @@ const tap = require('tap') | ||||
|  | ||||
| const config = require('../index.js') | ||||
|  | ||||
| const isObject = (object) => { | ||||
|   return typeof object === 'object' && object !== null | ||||
| } | ||||
|  | ||||
| tap.test('test basic properties of config', async (t) => { | ||||
|   t.ok(isObject(config.parserOptions)) | ||||
|   t.ok(isObject(config.env)) | ||||
|   t.ok(isObject(config.rules)) | ||||
|   t.ok(isObject(config.overrides)) | ||||
| }) | ||||
|  | ||||
| function isObject(object) { | ||||
|   return typeof object === 'object' && object !== null | ||||
| } | ||||
|   | ||||
							
								
								
									
										2
									
								
								test/fixtures/top-level-await.mjs
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								test/fixtures/top-level-await.mjs
									
									
									
									
										vendored
									
									
								
							| @@ -1,3 +1,3 @@ | ||||
| const foo = await 1 | ||||
| const bar = function () {} | ||||
| const bar = () => {} | ||||
| await bar(foo) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user