<commit_before>import { moduleForComponent, test } from 'ember-qunit';
import hbs from 'htmlbars-inline-precompile';

moduleForComponent( 'sl-loading-icon', 'Integration | Component | sl loading icon', {
    integration: true
});

test( 'Default classes are set', function( assert ) {
    this.render( hbs`
        {{#sl-loading-icon}}
        {{/sl-loading-icon}}
    ` );

    const wrapper = this.$( '>:first-child' );

    assert.ok(
        wrapper.hasClass( 'sl-loading-icon' ),
        'Has class "sl-loading-icon"'
    );

    assert.ok(
        wrapper.hasClass( 'sl-loading-icon-dark' ),
        'Has class "sl-loading-icon-dark"'
    );
});

test( 'Inverse property uses light icon scheme', function( assert ) {
    this.render( hbs`
        {{#sl-loading-icon inverse=true}}
        {{/sl-loading-icon}}
    ` );

    const wrapper = this.$( '>:first-child' );

    assert.ok(
        wrapper.hasClass( 'sl-loading-icon-light' ),
        'Has class "sl-loading-icon-light"'
    );
});<commit_msg>added default render tests and tag name span test<commit_after>import { moduleForComponent, test } from 'ember-qunit';
import hbs from 'htmlbars-inline-precompile';

moduleForComponent( 'sl-loading-icon', 'Integration | Component | sl loading icon', {
    integration: true
});

test( 'Default classes are set', function( assert ) {
    this.render( hbs`
        {{#sl-loading-icon}}
        {{/sl-loading-icon}}
    ` );

    assert.ok(
        this.$( '>:first-child' ).hasClass( 'sl-loading-icon' ),
        'Has class "sl-loading-icon"'
    );

    assert.ok(
        this.$( '>:first-child' ).hasClass( 'sl-loading-icon-dark' ),
        'Has class "sl-loading-icon-dark"'
    );

    assert.ok(
        this.$( '>:first-child' ).find( 'span#tagName' ),
        'tagName renders a span tag'
    );
});

test( 'Inverse property renders light icon scheme', function( assert ) {
    this.render( hbs`
        {{#sl-loading-icon}}
        {{/sl-loading-icon}}
    ` );

    assert.ok(
        this.$( '>:first-child' ).hasClass( 'sl-loading-icon-dark' ),
        'Inverse renders default scheme "sl-loading-icon-dark" icon'
    );

    this.render( hbs`
        {{#sl-loading-icon inverse=true}}
        {{/sl-loading-icon}}
    ` );

    assert.ok(
        this.$( '>:first-child' ).hasClass( 'sl-loading-icon-light' ),
        'Inverse true renders scheme "sl-loading-icon-light" icon'
    );
});
{'fraction_non_alphanumeric': 0.1745635910224439, 'fraction_numerical': 0.0, 'mean_word_length': 2.550147492625369, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 10, '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': '250729', 'n_tokens_mistral': 794, 'n_tokens_neox': 773, 'n_words': 172}