<commit_before>describe('breeze-json-api-uribuilder', function() {

	let uriBuilder = {};
	let manager = {};

	let executeQuery = function(query){
		return uriBuilder.buildUri(query, manager.metadataStore)
	}

	before(function() {
		breeze.config.initializeAdapterInstances({
			uriBuilder: "json-api"
		});
		const ds = new breeze.DataService({
			serviceName: 'http://localhost:9000',
			hasServerMetadata: false
		});

		manager = new breeze.EntityManager({
			dataService: ds
		});

		uriBuilder = breeze.config.getAdapterInstance("uriBuilder", 'json-api');
	});

	describe('breeze.EntityQuery().from("persons")', function() {
		it('should return the URI for the persons endpoint', function() {

			const expectedURI = 'persons';
			const query = new breeze.EntityQuery().from("persons");

			expect(executeQuery(query), 'Get all Persons').equal(expectedURI);			
		});
	});

	describe('breeze.EntityQuery().from("persons").where("ID", "==", "12345");', function() {
		it('should return the URI for a specific person', function() {

			const expectedURI = 'persons/12345';
			const query = new breeze.EntityQuery().from("persons").where("ID", "==", "12345");

			expect(executeQuery(query), "Get specific person").equal(expectedURI);					
		});
	});

});<commit_msg>Added additional test cases<commit_after>describe('breeze-json-api-uribuilder', function() {

	let uriBuilder = {};
	let manager = {};

	let executeQuery = function(query) {
		return uriBuilder.buildUri(query, manager.metadataStore)
	}

	before(function() {
		breeze.config.initializeAdapterInstances({
			uriBuilder: "json-api"
		});
		const ds = new breeze.DataService({
			serviceName: 'http://localhost:9000',
			hasServerMetadata: false
		});

		manager = new breeze.EntityManager({
			dataService: ds
		});

		uriBuilder = breeze.config.getAdapterInstance("uriBuilder", 'json-api');
	});

	describe('breeze.EntityQuery().from("persons")', function() {
		it('should return the URI for the persons endpoint', function() {

			const expectedURI = 'persons';
			const query = new breeze.EntityQuery().from("persons");

			expect(executeQuery(query), 'Get all Persons').equal(expectedURI);
		});
	});

	describe('breeze.EntityQuery().from("persons").where("ID", "==", "12345");', function() {
		it('should return the URI for a specific person', function() {

			const expectedURI = 'persons/12345';
			const query = new breeze.EntityQuery().from("persons").where("ID", "==", "12345");

			expect(executeQuery(query), "Get specific person").equal(expectedURI);
		});
	});

	describe('breeze.EntityQuery().from("persons").where("name", "startsWith", "A")', function() {
		it('should throw an error: startsWith isnt supported', function() {

			const query = new breeze.EntityQuery().from("persons").where('name', 'startsWith', 'A');
			expect(executeQuery(query)).to.throw(new Error('startsWith is not supported by JSON-API'));

		});
	});

});
{'fraction_non_alphanumeric': 0.17822802197802198, 'fraction_numerical': 0.01304945054945055, 'mean_word_length': 4.957055214723926, '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': '1246033', 'n_tokens_mistral': 1005, 'n_tokens_neox': 873, 'n_words': 184}