martijnversluis/ChordJS

View on GitHub
test/chord_symbol/clone.test.js

Summary

Maintainability
A
0 mins
Test Coverage
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', '#');
    });
  });
});