File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 11{
2+ "pagesRepository" : " https://github.com/tldr-pages/tldr" ,
23 "repository" : " http://tldr-pages.github.io/assets/tldr.zip" ,
34 "themes" : {
45 "simple" : {
Original file line number Diff line number Diff line change @@ -8,6 +8,6 @@ Please run tldr --update`;
88
99 notFound ( ) {
1010 return `Page not found.
11- Feel free to send a pull request to: https://github.com/ ` + config . get ( ) . pagesRepository ;
11+ Feel free to send a pull request to: ` + config . get ( ) . pagesRepository ;
1212 }
1313} ;
Original file line number Diff line number Diff line change @@ -9,13 +9,13 @@ describe('Config', () => {
99 const DEFAULT =
1010`
1111{
12- "repository": "tldr-pages/ tldr"
12+ "repository": "http:// tldr-pages.github.io/assets/ tldr.zip "
1313}` ;
1414
1515 const CUSTOM =
1616`
1717{
18- "repository": "myfork/ tldr"
18+ "repository": "http://myrepo/assets/ tldr.zip "
1919}` ;
2020
2121 const CUSTOM_INVALID =
@@ -45,13 +45,13 @@ describe('Config', () => {
4545 it ( 'should load the default config' , ( ) => {
4646 fs . readFileSync . onCall ( 0 ) . returns ( DEFAULT ) ;
4747 fs . readFileSync . onCall ( 1 ) . throws ( 'Not found' ) ;
48- config . get ( ) . repository . should . eql ( 'tldr-pages/ tldr' ) ;
48+ config . get ( ) . repository . should . eql ( 'http:// tldr-pages.github.io/assets/ tldr.zip ' ) ;
4949 } ) ;
5050
5151 it ( 'should override the defaults with content from .tldrrc' , ( ) => {
5252 fs . readFileSync . onCall ( 0 ) . returns ( DEFAULT ) ;
5353 fs . readFileSync . onCall ( 1 ) . returns ( CUSTOM ) ;
54- config . get ( ) . repository . should . eql ( 'myfork/ tldr' ) ;
54+ config . get ( ) . repository . should . eql ( 'http://myrepo/assets/ tldr.zip ' ) ;
5555 } ) ;
5656
5757 it ( 'should validate the custom config format' , ( ) => {
You can’t perform that action at this time.
0 commit comments