2021-06-02 22:36:25 -05:00
|
|
|
import {Canonical} from './Canonical'
|
2021-03-02 18:57:41 -06:00
|
|
|
|
2021-03-25 08:50:13 -05:00
|
|
|
/**
|
|
|
|
|
* Canonical class used for faking canonical units. Here, the canonical resolver
|
|
|
|
|
* is registered with the global service, but no files are loaded from the filesystem.
|
|
|
|
|
*/
|
2021-03-02 18:57:41 -06:00
|
|
|
export class FakeCanonical<T> extends Canonical<T> {
|
2021-06-02 22:36:25 -05:00
|
|
|
public async up(): Promise<void> {
|
2021-03-02 18:57:41 -06:00
|
|
|
this.canon.registerCanonical(this)
|
|
|
|
|
}
|
|
|
|
|
}
|