Material Web Team 41d41cc278 chore: update repository for Material 3
PiperOrigin-RevId: 455635969
2022-06-17 16:42:04 +00:00

23 lines
494 B
TypeScript

/**
* @license
* Copyright 2021 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
import 'jasmine';
import {Foundation} from './foundation';
describe('Foundation', () => {
it('#init() should be called on construction', () => {
class MyFoundation extends Foundation<{}> {
// Make init public to test
override init() {}
}
spyOn(MyFoundation.prototype, 'init');
const instance = new MyFoundation({});
expect(instance.init).toHaveBeenCalled();
});
});