mirror of
				https://github.com/Xahau/xahau.js.git
				synced 2025-11-04 04:55:48 +00:00 
			
		
		
		
	Update tests to use jasmine compatible functions. This means changing `test` to `it`, `toStrictEqual` to `toEqual` (which is still strict), `toThrowError` to `toError`, and updating the param for toError to pass an `Error` object. Remove the need to specify --single-run.
		
			
				
	
	
		
			15 lines
		
	
	
		
			384 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			384 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
const webpackConfig = require("./test/webpack.config");
 | 
						|
const baseKarmaConfig = require("../../karma.config");
 | 
						|
delete webpackConfig.entry;
 | 
						|
 | 
						|
module.exports = function (config) {
 | 
						|
  config.set({
 | 
						|
    webpack: webpackConfig,
 | 
						|
 | 
						|
    // list of files / patterns to load in the browser
 | 
						|
    files: ["build/xrplf-secret-numbers-latest.js", "test/*.test.ts"],
 | 
						|
  });
 | 
						|
 | 
						|
  baseKarmaConfig(config);
 | 
						|
};
 |