2021-06-03 03:36:25 +00:00
|
|
|
import {Canonical} from './Canonical'
|
2021-03-03 00:57:41 +00:00
|
|
|
|
2021-03-25 13:50:13 +00: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-03 00:57:41 +00:00
|
|
|
export class FakeCanonical<T> extends Canonical<T> {
|
2021-06-03 03:36:25 +00:00
|
|
|
public async up(): Promise<void> {
|
2021-03-03 00:57:41 +00:00
|
|
|
this.canon.registerCanonical(this)
|
|
|
|
}
|
|
|
|
}
|