'use strict';

const PutMarkerLocationsTest = require('./put_marker_locations_test');

class BadTypeLocationTest extends PutMarkerLocationsTest {

	get description () {
		return 'should return error when attempting to put marker locations with a bad type for locations';
	}

	getExpectedError () {
		return {
			code: 'RAPI-1012',
			info: 'locations'
		};
	}

	// set the data to be used in the PUT request
	setData (callback) {
		super.setData(() => {
			this.data.locations = 1;	// locations has to be an object!
			callback();
		});
	}
}

module.exports = BadTypeLocationTest;
