auto_test.go 533 B

1234567891011121314151617181920212223
  1. // Copyright (C) 2014 Jakob Borg and Contributors (see the CONTRIBUTORS file).
  2. // All rights reserved. Use of this source code is governed by an MIT-style
  3. // license that can be found in the LICENSE file.
  4. package auto_test
  5. import (
  6. "bytes"
  7. "testing"
  8. "github.com/syncthing/syncthing/auto"
  9. )
  10. func TestAssets(t *testing.T) {
  11. assets := auto.Assets()
  12. idx, ok := assets["index.html"]
  13. if !ok {
  14. t.Fatal("No index.html in compiled in assets")
  15. }
  16. if !bytes.Contains(idx, []byte("<html")) {
  17. t.Fatal("No html in index.html")
  18. }
  19. }