<commit_before><!DOCTYPE HTML>
<html lang="en-US">
<head>
	<meta charset="UTF-8">
	<title>Missing reference test</title>

    <script src="util/doh/runner.js"></script>
    <script src="test-config.js"></script>

	<script type="text/javascript">
		// Simple example of wiring in objects by reference using JSON ref syntax
		require(['wire'], function(wire) {
			wire({
				plugins: [
					{ module: 'wire/debug' }
				],
				// Unresolvable reference should fail
				thingRef: { $ref: 'thing' }
			}).then(
				function(context) {
					console.error("TEST FAILED: Should not have been able to wire", context);
				},
				function(err) {
					console.log("Seeing an error is CORRECT");
					console.err(err);
				}
			);
			
		});
	</script>
</head>
<body>
</body>
</html><commit_msg>Added test for missing refs in properties facet<commit_after><!DOCTYPE HTML>
<html lang="en-US">
<head>
	<meta charset="UTF-8">
	<title>Missing reference test</title>

    <script src="util/doh/runner.js"></script>
    <script src="test-config.js"></script>

	<script type="text/javascript">
        define('test', {});
		// Simple example of wiring in objects by reference using JSON ref syntax
		require(['wire'], function(wire) {
            
			wire({
				plugins: [
					{ module: 'wire/debug' }
				],
				// Unresolvable reference should fail
				thingRef: { $ref: 'thing' },
                propTest: {
                    create: 'test',
                    properties: {
                        thingProp: { $ref: 'thing' }
                    }
                }
			}).then(
				function(context) {
					console.error("TEST FAILED: Should not have been able to wire", context);
				},
				function(err) {
					console.log("Seeing an error is CORRECT");
					console.err(err);
				}
			);
			
		});
	</script>
</head>
<body>
</body>
</html>
{'fraction_non_alphanumeric': 0.16039279869067102, 'fraction_numerical': 0.0010911074740861974, 'mean_word_length': 2.421641791044776, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 35, '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': '4083867', 'n_tokens_mistral': 688, 'n_tokens_neox': 562, 'n_words': 144}