<commit_before>describe('when calling removeMarker()', function () {
  "use strict";
  it('should remove the Marker from the Map', function () {
    var map = new mapTools({async: false, id: 'mymap', lat: 41.3833, lng: 2.1833});

    var options = {
      lat: 41.3833,
      lng: 2.1833,
      title: 'Barcelona',
      visible: false,
      infoWindow: {
        content: 'Barcelona!'
      }
    };

    var instance = map.addMarker(options);
    map.removeMarker(instance);
    expect(instance.map).to.equal(null);
  });


  it('should remove multiple Markers from the Map', function() {

    var map = new mapTools({async: false, id: 'mymap', lat: 41.3833, lng: 2.1833});

    var markers = [{
      lat: 41.3833,
      lng: 2.1833,
      title: 'Barcelona'
    }, {
      lat: 41.4489,
      lng: 2.2461,
      title: 'Badalona'
    }];

    var result = map.addMarker(markers);

    map.removeMarker(result);

    expect(result[0].map).to.equal(null);
    expect(result[1].map).to.equal(null);

  });

});<commit_msg>Adds tests #229<commit_after>describe('when calling removeMarker()', function () {
  "use strict";
  it('should remove the Marker from the Map', function () {
    var map = new mapTools({async: false, id: 'mymap', lat: 41.3833, lng: 2.1833});

    var options = {
      lat: 41.3833,
      lng: 2.1833,
      title: 'Barcelona',
      visible: false,
      infoWindow: {
        content: 'Barcelona!'
      }
    };

    var instance = map.addMarker(options);
    map.removeMarker(instance);
    expect(instance.map).to.equal(null);
  });


  it('should remove multiple Markers from the Map', function() {

    var map = new mapTools({async: false, id: 'mymap', lat: 41.3833, lng: 2.1833});

    var markers = [{
      lat: 41.3833,
      lng: 2.1833,
      title: 'Barcelona'
    }, {
      lat: 41.4489,
      lng: 2.2461,
      title: 'Badalona'
    }];

    var result = map.addMarker(markers);

    map.removeMarker(result);

    expect(result[0].map).to.equal(null);
    expect(result[1].map).to.equal(null);

  });


  it('should remove all the Markers from the Map', function() {

    var map = new mapTools({async: false, id: 'mymap', lat: 41.3833, lng: 2.1833});

    var markers = [{
      lat: 41.3833,
      lng: 2.1833,
      title: 'Barcelona'
    }, {
      lat: 41.4489,
      lng: 2.2461,
      title: 'Badalona'
    }];

    var result = map.addMarker(markers);

    map.removeMarker();

    expect(result[0].map).to.equal(null);
    expect(result[1].map).to.equal(null);

  });

});
{'fraction_non_alphanumeric': 0.166270783847981, 'fraction_numerical': 0.060174188440221696, 'mean_word_length': 2.5491573033707864, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5091518', 'n_tokens_mistral': 1020, 'n_tokens_neox': 886, 'n_words': 206}