/**
 * @license
 * Copyright 2021 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
import {render} from 'lit-html';
import {assert} from 'chai';
import {stripExpressionComments} from '@lit-labs/testing';

export const makeAssertRender =
  (getContainer: () => HTMLElement) => (value: unknown, expected: string) => {
    const container = getContainer();
    render(value, container);
    return assert.equal(stripExpressionComments(container.innerHTML), expected);
  };
