martijnversluis/ChordJS

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

Summary

Maintainability
A
0 mins
Test Coverage
import NumericChord from '../../src/numeric_chord';
import '../matchers';

describe('NumericChord', () => {
  describe('clone', () => {
    it('assigns the right instance variables', () => {
      const chord = new NumericChord({
        base: 1,
        modifier: 'b',
        suffix: 'sus4',
        bassBase: 3,
        bassModifier: '#',
      });

      const clonedChord = chord.clone();
      expect(clonedChord).toBeChord(1, 'b', 'sus4', 3, '#');
    });
  });
});