import assert from 'node:assert/strict';
import {getOgType} from '../../../../core/frontend/meta/og-type';

describe('getOgType', function () {
    it('should return og type profile if context is type author', function () {
        const ogType = getOgType({
            context: ['author']
        });
        assert.equal(ogType, 'profile');
    });

    it('should return og type article if context is type post', function () {
        const ogType = getOgType({
            context: ['post']
        });
        assert.equal(ogType, 'article');
    });

    it('should return og type website if context is not author or post', function () {
        const ogType = getOgType({
            context: ['tag']
        });
        assert.equal(ogType, 'website');
    });
});
