| 
									
										
										
										
											2020-02-25 18:34:29 +00:00
										 |  |  | import { expect, tap } from '@pushrocks/tapbundle'; | 
					
						
							| 
									
										
										
										
											2022-08-09 18:19:05 +02:00
										 |  |  | import * as smartmatch from '../ts/index.js'; | 
					
						
							| 
									
										
										
										
											2020-02-25 18:34:29 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | tap.test('first test', async () => { | 
					
						
							| 
									
										
										
										
											2020-02-25 19:02:52 +00:00
										 |  |  |   const smartMatchInstance = new smartmatch.SmartMatch('*.any'); | 
					
						
							|  |  |  |   const isAMatch = smartMatchInstance.match('wow.any'); | 
					
						
							|  |  |  |   const isNotAMatch = smartMatchInstance.match('wow.not'); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-08-09 18:19:05 +02:00
										 |  |  |   expect(isAMatch).toBeTrue(); | 
					
						
							|  |  |  |   expect(isNotAMatch).toBeFalse(); | 
					
						
							| 
									
										
										
										
											2020-02-25 18:34:29 +00:00
										 |  |  | }); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | tap.start(); |