<commit_before>/* global describe:true, it:true */

// Utilities:
import chai from 'chai';

// Test setup:
const expect = chai.expect;

// Under test:
import serve from './serve';

describe('tractor-plugin-screen-size - serve:', () => {
    it('should do nothing if there is no config', () => {
        let config = {};

        expect(() => {
            serve(null, config);
        }).to.not.throw();
    });

    it('should add tags for each screen size in the config', () => {
        let config = {
            tags: [],
            screenSizes: {
                sm: 360,
                md: 768
            }
        };

        serve(null, config);

        expect(config.tags.length).to.equal(2);

        let [smTag, mdTag] = config.tags;

        expect(smTag).to.equal('@screen-size:sm');
        expect(mdTag).to.equal('@screen-size:md');
    });
});<commit_msg>(tests :rotating_light:) - fixing broken unit tests<commit_after>/* global describe:true, it:true */

// Utilities:
import chai from 'chai';

// Test setup:
const expect = chai.expect;

// Under test:
import serve from './serve';

describe('tractor-plugin-screen-size - serve:', () => {
    it('should do nothing if there is no config', () => {
        let config = {};

        expect(() => {
            serve(null, null, config);
        }).to.not.throw();
    });

    it('should add tags for each screen size in the config', () => {
        let config = {
            tags: [],
            screenSizes: {
                sm: 360,
                md: 768
            }
        };

        serve(null, null, config);

        expect(config.tags.length).to.equal(2);

        let [smTag, mdTag] = config.tags;

        expect(smTag).to.equal('@screen-size:sm');
        expect(mdTag).to.equal('@screen-size:md');
    });
});
{'fraction_non_alphanumeric': 0.17036625971143174, 'fraction_numerical': 0.00776914539400666, 'mean_word_length': 1.8987138263665595, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '3103607', 'n_tokens_mistral': 567, 'n_tokens_neox': 537, 'n_words': 133}