martijnversluis/ChordJS

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

Summary

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

describe('NumericChord', () => {
  describe('normalize', () => {
    it('is a noop', () => {
      const chord = new NumericChord({
        base: '3',
        modifier: '#',
        suffix: null,
        bassBase: '4',
        bassModifier: 'b',
      });

      const normalizedChord = chord.normalize();
      expect(normalizedChord).toBeChord(3, '#', null, 4, 'b');
    });
  });
});