This repository has been archived by the owner on Aug 14, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix and improve specs related to bootstrapping
First and foremost fixes specs related to `Latex` and bootstrapping the global `window.latex` instance.
- Loading branch information
Showing
4 changed files
with
34 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,6 @@ | ||
Latex = require '../lib/latex' | ||
Logger = require '../lib/logger' | ||
|
||
class NullLogger extends Logger | ||
error: -> null | ||
warning: -> null | ||
info: -> null | ||
{Logger} = require './stubs' | ||
|
||
window.latex = new Latex() | ||
latex.initialize() | ||
latex.setLogger(new NullLogger()) | ||
latex.setLogger(new Logger()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
Logger = require '../lib/logger' | ||
Opener = require '../lib/opener' | ||
|
||
class NullLogger extends Logger | ||
error: -> null | ||
warning: -> null | ||
info: -> null | ||
|
||
|
||
class NullOpener extends Opener | ||
open: (filePath, texPath, lineNumber, callback) -> null | ||
|
||
|
||
module.exports = | ||
Logger: NullLogger | ||
Opener: NullOpener |