Softboxes Comparison Source Code

Browse the implementation files for Softboxes Comparison.
selection.spec.ts typescript
import { describe, expect, it } from 'vitest';

import { removeSelectedItem } from './selection';

describe('compare item selection', () => {
	it('allows the final selected item to be removed', () => {
		expect(removeSelectedItem(['phone'], 'phone')).toEqual([]);
	});

	it('removes only the requested item', () => {
		expect(
			removeSelectedItem(['phone', 'tablet', 'banana'], 'tablet')
		).toEqual(['phone', 'banana']);
	});
});

Description

Browse the implementation files for Softboxes Comparison.

References

  1. Tool.io on GitHub
  2. Tool.io TypeScript tools library

Similar or alternative tools

Don't forget to set a bookmark for tool.io!
Privacy | Imprint | Cookies