fix test
This commit is contained in:
		
							parent
							
								
									9acc36185b
								
							
						
					
					
						commit
						7706c38d3d
					
				
					 35 changed files with 2 additions and 2 deletions
				
			
		
							
								
								
									
										18
									
								
								packages/backend/test/prelude/maybe.ts
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								packages/backend/test/prelude/maybe.ts
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,18 @@
 | 
			
		|||
import * as assert from 'assert';
 | 
			
		||||
import { just, nothing } from '../../src/prelude/maybe';
 | 
			
		||||
 | 
			
		||||
describe('just', () => {
 | 
			
		||||
	it('has a value', () => {
 | 
			
		||||
		assert.deepStrictEqual(just(3).isJust(), true);
 | 
			
		||||
	});
 | 
			
		||||
 | 
			
		||||
	it('has the inverse called get', () => {
 | 
			
		||||
		assert.deepStrictEqual(just(3).get(), 3);
 | 
			
		||||
	});
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
describe('nothing', () => {
 | 
			
		||||
	it('has no value', () => {
 | 
			
		||||
		assert.deepStrictEqual(nothing().isJust(), false);
 | 
			
		||||
	});
 | 
			
		||||
});
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue