fix(dependencies): update to latest standards
This commit is contained in:
		
							
								
								
									
										25
									
								
								test/test.ts
									
									
									
									
									
								
							
							
						
						
									
										25
									
								
								test/test.ts
									
									
									
									
									
								
							@@ -1,22 +1,21 @@
 | 
			
		||||
import { expect, tap } from 'tapbundle'
 | 
			
		||||
import * as smartversion from '../ts/index'
 | 
			
		||||
import { expect, tap } from '@pushrocks/tapbundle';
 | 
			
		||||
import * as smartversion from '../ts/index';
 | 
			
		||||
 | 
			
		||||
let localSmartVersion: smartversion.SmartVersion
 | 
			
		||||
let localSmartVersion: smartversion.SmartVersion;
 | 
			
		||||
tap.test('should create a valid SmartVersion', async () => {
 | 
			
		||||
  localSmartVersion = new smartversion.SmartVersion('3.2.1')
 | 
			
		||||
  expect(localSmartVersion).to.be.instanceof(smartversion.SmartVersion)
 | 
			
		||||
})
 | 
			
		||||
  localSmartVersion = new smartversion.SmartVersion('3.2.1');
 | 
			
		||||
  expect(localSmartVersion).to.be.instanceof(smartversion.SmartVersion);
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
tap.test('should correctly classify greater and less than', async () => {
 | 
			
		||||
  // tslint:disable-next-line:no-unused-expression
 | 
			
		||||
  expect(localSmartVersion.greaterThanString('4.0.0')).to.be.false
 | 
			
		||||
  expect(localSmartVersion.greaterThanString('4.0.0')).to.be.false;
 | 
			
		||||
  // tslint:disable-next-line:no-unused-expression
 | 
			
		||||
  expect(localSmartVersion.greaterThanString('3.0.0')).to.be.true
 | 
			
		||||
  expect(localSmartVersion.greaterThanString('3.0.0')).to.be.true;
 | 
			
		||||
  // tslint:disable-next-line:no-unused-expression
 | 
			
		||||
  expect(localSmartVersion.lessThanString('v4.0.0')).to.be.true
 | 
			
		||||
  expect(localSmartVersion.lessThanString('v4.0.0')).to.be.true;
 | 
			
		||||
  // tslint:disable-next-line:no-unused-expression
 | 
			
		||||
  expect(localSmartVersion.lessThanString('v3.0.0')).to.be.false
 | 
			
		||||
  expect(localSmartVersion.lessThanString('v3.0.0')).to.be.false;
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
tap.start()
 | 
			
		||||
tap.start();
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user