test/chord_symbol/clone.test.js
import ChordSymbol from '../../src/chord_symbol';
import '../matchers';
describe('ChordSymbol', () => {
describe('clone', () => {
it('assigns the right instance variables', () => {
const chord = new ChordSymbol({
base: 'E',
modifier: 'b',
suffix: 'sus4',
bassBase: 'G',
bassModifier: '#',
});
const clonedChord = chord.clone();
expect(clonedChord).toBeChord('E', 'b', 'sus4', 'G', '#');
});
});
});