blob: 83a90c0144fd6c526fde57f0d9bf980ee9879049 [file] [log] [blame]
/* This file is a part of @mdn/browser-compat-data
* See LICENSE file for more information. */
/** @import {CompatStatement} from './types/types.js' */
import assert from 'node:assert/strict';
import bcd from './index.js';
describe('Using BCD', () => {
it('subscript notation', () => {
/** @type {CompatStatement | undefined} */
const data = bcd['api']['AbortController']['__compat'];
assert.ok(data);
});
it('dot notation', () => {
/** @type {CompatStatement | undefined} */
const data = bcd.api.AbortController.__compat;
assert.ok(data);
});
});