File tree Expand file tree Collapse file tree 3 files changed +28
-0
lines changed
Expand file tree Collapse file tree 3 files changed +28
-0
lines changed Original file line number Diff line number Diff line change 1+ export {
2+ assert ,
3+ assertEquals ,
4+ } from "https://deno.land/std@0.74.0/testing/asserts.ts" ;
Original file line number Diff line number Diff line change 1+ export const comment = [
2+ {
3+ css : "/* body { color: black; } */" ,
4+ ast : {
5+ type : "stylesheet" ,
6+ stylesheet : {
7+ rules : [ {
8+ type : "comment" ,
9+ text : " body { color: black; } " ,
10+ } ] ,
11+ } ,
12+ } ,
13+ } ,
14+ ] ;
Original file line number Diff line number Diff line change 1+ import { parse } from "../core/parser/parser.ts" ;
2+ import { comment } from "./fixtures.js" ;
3+ import { assertEquals } from "./deps.ts" ;
4+
5+ for ( let i = 0 ; i < comment . length ; i ++ ) {
6+ Deno . test ( `[parse] - comments (${ i } )` , function ( ) {
7+ let ast = parse ( comment [ i ] . css , { comments : true } ) ;
8+ assertEquals ( ast , comment [ i ] . ast ) ;
9+ } ) ;
10+ }
You can’t perform that action at this time.
0 commit comments