mirror of
				https://github.com/reduxjs/redux-devtools.git
				synced 2025-11-04 01:47:25 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			28 lines
		
	
	
		
			720 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			720 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
var helpers = require('../helpers');
 | 
						|
var mark = helpers.mark;
 | 
						|
var extract = helpers.extract;
 | 
						|
var refer = helpers.refer;
 | 
						|
 | 
						|
describe('Helpers', function () {
 | 
						|
  it('mark', function () {
 | 
						|
    expect(mark({ testData: 'test' }, 'testType')).toMatchSnapshot();
 | 
						|
    expect(
 | 
						|
      mark({ testData: 'test' }, 'testType', 'toString')
 | 
						|
    ).toMatchSnapshot();
 | 
						|
  });
 | 
						|
 | 
						|
  it('extract', function () {
 | 
						|
    expect(extract({ testData: 'test' }, 'testType')).toMatchSnapshot();
 | 
						|
  });
 | 
						|
 | 
						|
  it('refer', function () {
 | 
						|
    var TestClass = function (data) {
 | 
						|
      return data;
 | 
						|
    };
 | 
						|
    var testInstance = new TestClass({ testData: 'test' });
 | 
						|
    expect(
 | 
						|
      refer(testInstance, 'testType', false, [TestClass])
 | 
						|
    ).toMatchSnapshot();
 | 
						|
  });
 | 
						|
});
 |