<commit_before>import Ember from 'ember';
import DS from 'ember-data';
import { moduleFor, test } from 'ember-qunit';

let service, store, owner;

moduleFor('service:api', {
    beforeEach() {
        service = this.subject();
        store = service.get('store');
        owner = Ember.getOwner(service);
        owner.register('model:user', DS.Model);
    },
    afterEach() {
        owner.unregister('model:user');
        owner = null;
        service = null;
        store = null;
    }
});

test('buildURL with path only', function(assert) {
    assert.expect(1);
    let service = this.subject();
    let url = service.buildURL('action');
    assert.equal(url, '/action', 'should return right URL.');
});<commit_msg>Fixed registrations in tests.<commit_after>import Ember from 'ember';
import DS from 'ember-data';
import { moduleFor, test } from 'ember-qunit';

let service, store;

moduleFor('service:api', {
    beforeEach() {
        this.register('model:user', DS.Model);
        service = this.subject();
        store = service.get('store');
    },
    afterEach() {
        service = null;
        store = null;
    }
});

test('buildURL with path only', function(assert) {
    assert.expect(1);
    let service = this.subject();
    let url = service.buildURL('action');
    assert.equal(url, '/action', 'should return right URL.');
});
{'fraction_non_alphanumeric': 0.15964523281596452, 'fraction_numerical': 0.0014781966001478197, 'mean_word_length': 3.0178041543026706, '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': '223090', 'n_tokens_mistral': 401, 'n_tokens_neox': 403, 'n_words': 103}