@@ -87,7 +87,7 @@ acceptance("DiscoTOC - off", function (needs) {
8787
8888acceptance ( "DiscoTOC - with tags" , function ( needs ) {
8989 needs . pretender ( ( server , helper ) => {
90- settings . auto_TOC_tags = TOC_AUTO_TAGS ;
90+ settings . auto_tags = TOC_AUTO_TAGS ;
9191 const topicResponse = cloneJSON ( topicFixtures [ "/t/280/1.json" ] ) ;
9292 topicResponse . post_stream . posts [ 0 ] . cooked = COOKED_WITH_HEADINGS ;
9393 topicResponse . tags = TOC_TOPIC_TAGS ;
@@ -106,7 +106,7 @@ acceptance("DiscoTOC - with tags", function (needs) {
106106
107107acceptance ( "DiscoTOC - with categories" , function ( needs ) {
108108 needs . pretender ( ( server , helper ) => {
109- settings . auto_TOC_categories = TOC_AUTO_CATEGORIES ;
109+ settings . auto_categories = TOC_AUTO_CATEGORIES ;
110110 const topicResponse = cloneJSON ( topicFixtures [ "/t/280/1.json" ] ) ;
111111 topicResponse . post_stream . posts [ 0 ] . cooked = COOKED_WITH_HEADINGS ;
112112 topicResponse . category_id = TOC_TOPIC_CATEGORY ;
@@ -125,7 +125,7 @@ acceptance("DiscoTOC - with categories", function (needs) {
125125
126126acceptance ( "DiscoTOC - non-text headings" , function ( needs ) {
127127 needs . pretender ( ( server , helper ) => {
128- settings . TOC_min_heading = 1 ;
128+ settings . min_heading = 1 ;
129129 const topicResponse = cloneJSON ( topicFixtures [ "/t/280/1.json" ] ) ;
130130 topicResponse . post_stream . posts [ 0 ] . cooked = `
131131 <h3 id="toc-h3-span" data-d-toc="toc-h3-span" class="d-toc-post-heading">
@@ -152,9 +152,9 @@ acceptance("DiscoTOC - non-text headings", function (needs) {
152152 } ) ;
153153} ) ;
154154
155- acceptance ( "DiscoTOC - setting TOC_min_heading " , function ( needs ) {
155+ acceptance ( "DiscoTOC - setting min_heading " , function ( needs ) {
156156 needs . pretender ( ( server , helper ) => {
157- settings . TOC_min_heading = 3 ;
157+ settings . min_heading = 3 ;
158158 const topicResponse = cloneJSON ( topicFixtures [ "/t/280/1.json" ] ) ;
159159 topicResponse . post_stream . posts [ 0 ] . cooked =
160160 '<h1>\n<a name="h1-first-test-edited-1" class="anchor" href="#h1-first-test-edited-1"></a>帖子控制</h1>\nWelcome' +
0 commit comments